Click to See Complete Forum and Search --> : "Scene 1 was not found"


mr_newbie
02-18-2008, 07:03 PM
ive got a movie placed in Frame 1 of Scene 1
ive put the following code when the movie stops, so that a button takes the user to Frame 2 of Scene 1 when clicked


stop();

btnEnter.addEventListener(MouseEvent.CLICK, enterMain);

function enterMain(event:MouseEvent):void {
gotoAndPlay(2, "Scene 1");
}

However, it gives the error "Scene 1 was not found" when i click the button, even though Scene 1 does exist.

Any ideas? Im using Adobe Flash ActionScript 3.

visualizer03
02-28-2008, 06:58 PM
I am not an actionscript 3 user, yet, but in previous versions of actionscript the scene is first and then the frame number.

so this code

gotoAndPlay(2, "Scene 1");


would like like this gotoAndPlay("Scene 1", 2);