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.
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.