Hey guys! basic question here…
I am stopping a testTimer variable inside a timer handler… (simple code, as an example)
Works like a charm, but…I would like testTimer.stop(); to stop the handler before trace(“LOOPINGG”); is processed…
Any ideas?
Here’s the simple code:
var testTimer:Timer = new Timer(1000);
testTimer.addEventListener(TimerEvent.TIMER, onTestTimer);
testTimer.start();
function onTestTimer(event:TimerEvent)
{
trace("LOOPING");
testTimer.stop(); //stops the timer, but trace("LOOPINGG") is still traced...
trace("LOOPINGG"); //I don't want this to be traced, right now...
}