How do I remove a timer object like in this code.
var jumpTimer:Timer = new Timer(8000, 1);
jumpTimer.addEventListener(TimerEvent.TIMER, jump);
function jump(event:TimerEvent):void
{
Tweener.addTween(step1, {alpha:0,time:0.5,transition:“easeInOutSine”});
step1.lines.sublines.stop();
nextFrame();
}
jumpTimer.start();
I tried jumpTimer.stop(); on a function withing a button but it keeps executing.
I traced jumpTimer and I get [object Timer].
Is there a remove command for timer?