I had my flash project broken up into 3 scenes. I'm trying to get them all linked using actionscript to eliminate the individual scenes. I have the first 2 working, but am having trouble linking my closing scene as well. Here's my code so far:
Code:
package {
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
public class ExampleOne extends MovieClip{
public function ExampleOne () {
this.playButton.addEventListener(MouseEvent.MOUSE_DOWN, moveIt);
}
private function moveIt (evt:MouseEvent):void {
this.mainScene_mc.gotoAndPlay (2);
}
}
}
My closing scene should play right after the main scene but it isn't. Any help is MUCH appreciated.