It is really easy to create a Timer in Actionscript 3.

Instantiate the Timer Class and pass a time in millions of 1000 to it to work in seconds.
[code lang=”actionscript”]
var myTimer:Timer = new Timer(1000);
[/code]

Setup an event listener to call a function.
[code lang=”actionscript”]
myTimer.addEventListener(“timer”, myTimerEventHandler);
[/code]

Start the Timer.
[code lang=”actionscript”]
myTimer.start();
[/code]

Start the Timer.
[code lang=”actionscript”]
function myTimerEventHandler(event:TimerEvent):void {
trace(myTimer.currentCount+” seconds have passed.”);
}
[/code]

So altogether we have this.
[code lang=”actionscript”]
var myTimer:Timer = new Timer(1000);
myTimer.addEventListener(“timer”, myTimerEventHandler);
myTimer.start();
function myTimerEventHandler(event:TimerEvent):void {
trace(myTimer.currentCount+” seconds have passed.”);
}
[/code]

Now you know how to use a Timer in Actionscript 3.