Download Flash Lite 2.x and 3.x ActionScript Language Reference

Transcript
FLASH LITE 2.X AND 3.X ACTIONSCRIPT LANGUAGE REFERENCE
ActionScript language elements
var firstName:String = "Gus";
var lastName:String = "Richardson";
var age:Number = 92;
getURL("http://www.macromedia.com", "_blank", "POST");
See also
loadVariables function, send (XML.send method), sendAndLoad (XML.sendAndLoad method)
getVersion function
getVersion() : String
Returns a string containing Flash Player version and platform information. The getVersion function returns
information only for Flash Player 5 or later versions of Flash Player.
Availability
Flash Lite 2.0
Returns
String - A string containing Flash Player version and platform information.
Example
The following examples trace the version number of the Flash Player playing the SWF file:
var flashVersion:String = getVersion();
trace(flashVersion); // output: WIN 8,0,1,0
trace($version); // output: WIN 8,0,1,0
trace(System.capabilities.version); // output: WIN 8,0,1,0
The following string is returned by the getVersion function:
WIN 8,0,1,0
This returned string indicates that the platform is Microsoft Windows, and the version number of Flash Player is major
version 8, minor version 1 (8.1).
See also
os (capabilities.os property), version (capabilities.version property)
gotoAndPlay function
gotoAndPlay( [scene:String,] frame:Object) : Void
Sends the playhead to the specified frame in a scene and plays from that frame. If no scene is specified, the playhead
goes to the specified frame in the current scene. You can use the scene parameter only on the root Timeline, not within
Timelines for movie clips or other objects in the document.
Availability
Flash Lite 1.0
Parameters
scene:String [optional] - A string specifying the name of the scene to which the playhead is sent.
Last updated 12/20/2010
23