MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 167

Actionscript language reference
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flex

Table of Contents