timer query
hi,
i have movie on timeline in between movie want wait movie time. tried timer class not working. can help?
import flash.utils.timer;
import flash.events.timerevent;
//wait 8 seconds, execute function stops timer , begins playing @ keyframe 2
var mytimer:timer = new timer(8000, 8); // 8 second delay
mytimer.addeventlistener(timerevent.timer, runonce);
mytimer.start();
function runonce(event:timerevent):void
{
mytimer.delay();
//gotoandplay(3190);
}
try:
import flash.utils.timer;
import flash.events.timerevent;
var mytimer:timer = new timer(8000, 1); // 8000 msec delay, run once
mytimer.addeventlistener(timerevent.timer, runonce);
mytimer.start();
function runonce(event:timerevent):void
{
//gotoandplay(3190);
}
More discussions in ActionScript 3
adobe
Comments
Post a Comment