Hey folks,
I have a problem when linking two scenes together using this code:
3p_bn.onRelease=function(){
gotoAndPlay(“M2”, 1)
}
3p_bn is my button’s instance name
M2 is my scene’s name
1 being the first frame in that scene
Yet when I execute this program I get an error:
Error Scene=M1, layer=Actionscript, frame=1:Line 3: Syntax error.
3p_bn.onRelease=function(){
I dont understand, as I have exactly same code for my back button:
back_bn.onRelease=function(){
gotoAndPlay(“Mainscreen”, 1)
}
Does anyone know what could be the problem?
Thanks in advance
Chavs