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…
system
2
_parent.secondMenu.onEnterFrame = function() {
if(this.onMyButton = false){
this.previousFrame();
this.gotoAndStop(1);
}
}
system
3
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?
system
4
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() {