there is no error in the Error window
what is wrong with this code:
function ShortTimer() {
// creates a new five-second Timer
var minuteTimer:Timer = new Timer(1000, 5);
// designates listeners for the interval and completion events
minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE,onTimerComplete);
// starts the timer ticking
minuteTimer.start();
}
function onTick(event:TimerEvent):void {
// displays the tick count so far
// The target of this event is the Timer instance itself.
trace("tick " + event.target.currentCount);
}
function onTimerComplete(event:TimerEvent):void {
trace("Time's Up!");
}