EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Gettimer Function; Geturl Function

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Global Functions 49
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
Number - The number of milliseconds that have elapsed since the SWF file started playing.
Example
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);
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,
http://www.myserver.com), you
need a network connection.
Availability: ActionScript 1.0; Flash Lite 1.0 - The
GET and POST options are available only in
and later versions.
Parameters
url:String - The URL from which to obtain the document.
window:String [optional] - Specifies the window or HTML frame into which the document
should load. You can enter the name of a specific window or select from the following
reserved target names:
_self specifies the current frame in the current window.
_blank specifies a new window.
_parent specifies the parent of the current frame.
_top specifies the top-level frame in the current window.

Table of Contents

Related product manuals