PDA

View Full Version : field name????



outro_lugar
July 29th, 2003, 09:58 PM
when I type in this code -

_parent.secondMenu.onClipEvent(enterFrame){
if(_parent.secondMenu.onMyButton = false){
this.previousFrame();
this.gotoAndStop(1);
}
}

I keep getting this error msg -

Symbol=15-MENU, Layer=port_sub, Frame=1: Line 1: Expected a field name after '.' operator.
_parent.secondMenu.onClipEvent(enterFrame){

What is a field name? I don't know whats wrong in this code...

ahmed
July 29th, 2003, 10:01 PM
_parent.secondMenu.onEnterFrame = function() {
if(this.onMyButton = false){
this.previousFrame();
this.gotoAndStop(1);
}
}

outro_lugar
July 29th, 2003, 10:05 PM
hmmm, now it says it needs a ;


Symbol=15-MENU, Layer=port_sub, Frame=1: Line 1: ';' expected
_parent.secondMenu.onEnterFrame){


there is no need for a ; in here is there?

outro_lugar
July 29th, 2003, 10:07 PM
this is what it actually says to this

_parent.secondMenu.onEnterFrame = function() {
if(this.onMyButton = false){
this.previousFrame();
this.gotoAndStop(1);
}
}



Symbol=15-MENU, Layer=port_sub, Frame=1: Line 1: Statement must appear within on/onClipEvent handler
_parent.secondMenu.onEnterFrame = function() {