I have started my movie with the var "nowPlaying" to be true because "mySuper_mc" will be playing at start.
I have then created a Timer function that will tell the "mySuper_mc" to stop playing after given amount of time and to also set "nowPlaying" variable to false, however the setting the variable to false doesn't seem to work.
I can mouse over in the begging of the movie before the timer has stopped it and will still get the trace statement that "The Movie Is Stopped"
PHP Code:
stop();
var stopTime:Timer = new Timer(500);
var nowPlaying:Boolean = true;
stage.addEventListener(MouseEvent.MOUSE_OVER, mousedOver);
function mousedOver(event:MouseEvent):void
{
if (nowPlaying == false);
{
trace("The Movie Is Stopped");
}
}
stopTime.addEventListener(TimerEvent.TIMER, starTimer);
function starTimer(event:TimerEvent):void
{
mySuper_mc.stop();
nowPlaying = false;
}
stopTime.start();