Hello all.
I’m trying to create “Time based movie control” (in the first frame of my movie) via the code below. I’m trying to advance the playhead to frame 2 once 5000 milliseconds have gone by. I’m able to trace getTimer but I am unable to advance the playhead to the next frame.
Any thoughts?
stop();
function myTimer():Void {
trace(getTimer());
if(myTimer > 5000){
gotoAndStop(2);
}
}
var intervalID:Number = setInterval(myTimer, 1000);
myTimer();
Cheers,
-A