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.
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...