Section 6.3 of the AVM 2 review has a good description:
, newfunction, . newactivation .
, , , :
public function QuickTest()
{
startTimer(1);
startTimer(2);
}
public function startTimer(id:int):void
{
var timer:Timer = new Timer(1000, 1);
timer.addEventListener(TimerEvent.TIMER_COMPLETE, function(ev:TimerEvent):void
{
trace('Timer #'+id+' done.');
});
timer.start();
}
:
Timer
Timer
, "" . , startTimer , , , . , :
Timer
Timer