User Guide

Global Functions 51
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: ActionScript 1.0; 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: ActionScript 1.0; Flash Lite 1.0
Parameters
scene:String [optional] - A string specifying the name of the scene to which the playhead is
sent.
frame:Object - A number representing the frame number, or a string representing the label
of the frame, to which the playhead is sent.