Timer Start and Stop problem
I have a timer set up like this:
function headlineTimer() {
var timer:Timer = new Timer(3000, 20);
timer.addEventListener(TimerEvent.TIMER, timerComplete);
timer.start();
}
function timerComplete(e:TimerEvent):void{
trace("times up");
nextFrame();
}
The problem is I cant figure out how to stop it or reset it after it goes to the next frame. Can anyone help me with this? thanks in advance.