Question
Annoyingly simple
Hey,
This is such an elementary problem which I am sure everyone one of you could solve, but at the moment I cannot do it and its giving me a headache. Basically I have a button with an instance name of goPlay_btn and I want it to go to Scene 8 on release. I have tried all the usual methods but I keep getting this error:
Statement must appear within on handler
This is the code I have put in:
goPlay_btn.onRelease = function (){
gotoAndPlay("Scene 8", 1);
};
What is going wrong?!
Any help appreciated!
Regards,
Adam Justice
This is such an elementary problem which I am sure everyone one of you could solve, but at the moment I cannot do it and its giving me a headache. Basically I have a button with an instance name of goPlay_btn and I want it to go to Scene 8 on release. I have tried all the usual methods but I keep getting this error:
Statement must appear within on handler
This is the code I have put in:
goPlay_btn.onRelease = function (){
gotoAndPlay("Scene 8", 1);
};
What is going wrong?!
Any help appreciated!
Regards,
Adam Justice