getTimer() : Number
Returns the number of milliseconds that have elapsed since the SWF file started playing.
Number - The number of milliseconds that have elapsed since the SWF file started playing.
In the following example, the getTimer() and setInterval() functions are used to create a simple timer:
this.createTextField("timer_txt", this.getNextHighestDepth(), 0, 0, 100, 22);
function updateTimer():Void {
timer_txt.text = getTimer();
}
var intervalID:Number = setInterval(updateTimer, 100);