EasyManua.ls Logo

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE - Gettimer Function; Geturl Function

MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
1378 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 59
Returns
Object - The value of the specified property.
Example
The following example creates a new movie clip
someClip_mc and shows the alpha value
(
_alpha) for the movie clip someClip_mc in the Output panel:
this.createEmptyMovieClip("someClip_mc", 999);
trace("The alpha of "+getProperty(someClip_mc, _name)+" is:
"+getProperty(someClip_mc, _alpha));
getTimer function
getTimer() : Number
Returns the number of milliseconds that have elapsed since the SWF file started playing.
Availability: ActionScript 1.0; Flash Player 4
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 Player 4 - The
GET and POST options are available only in
and later versions.

Table of Contents

Related product manuals