getTimer function
getTimer() : Number
Returns the number of milliseconds that have elapsed since the SWF file started playing.
Availability: ActionScript 1.0; Flash Lite 1.0
Returns
- The number of milliseconds that have elapsed since the SWF file started playing.
Number
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);
getURL function
getURL(url:String [, window:String [, method:String] ]) : Void
Loads a document from a specific URL into a window or passes variables to another
application at a defined URL. To test this function, make sure the file to be loaded is at the
specified location. To use an absolute URL (for example,
need a network connection.
Availability: ActionScript 1.0; Flash Lite 1.0 - The
and later versions.
Parameters
- The URL from which to obtain the document.
url:String
[optional] - Specifies the window or HTML frame into which the document
window:String
should load. You can enter the name of a specific window or select from the following
reserved target names:
specifies the current frame in the current window.
_self
■
specifies a new window.
■
_blank
specifies the parent of the current frame.
_parent
■
specifies the top-level frame in the current window.
_top
■
and
getTimer()
setInterval()
functions are used to create a
http://www.myserver.com
and
options are available only in
GET
POST
), you
Global Functions
49
Need help?
Do you have a question about the FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers