Delay Timer

// Requires a movieclip with the instance name "objectMC" to be on the stage

var myTimer:Timer = new Timer(6000, 1);
myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, timerHandler);
myTimer.start();

function timerHandler(evt:TimerEvent):void
{
car.x = 200;
car.y = 200;
}

//myTimer.stop();

0 comments:

Post a Comment