Go to Scene and Play does not play to the next scene
Hi, I am a newbie in Adobe An. I am now working on an interactive project. The problem I face is that went I add an actions code (gotoAndPlay) to a button in Scene 1 and wish to lead it to Scene 2, it just will replay Scene 1 went I press it. (Test Movie In AIR(mobile) )
This is the code I use for my button:
start.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_2);
function fl_ClickToGoToScene_2(event:MouseEvent):void
{
MovieClip(this.root).gotoAndPlay(1, "Scene 2");
}
Thank you so much!
