getTimer()
Availability
Flash Player 4.
Usage
getTimer() : Number
Parameters
None.
Returns
The number of milliseconds that have elapsed since the SWF file started playing.
Description
Function; returns the number of milliseconds that have elapsed since the SWF file started playing.
Example
In the following example, the
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);
ActionScript Core Language Elements
and
getTimer()
setInterval()
CHAPTER 5
functions are used to create a
getTimer()
167
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?