Getversion Function; Gotoandplay Function - MACROMEDIA FLASHLITE2 ACTIONSCRIPT-LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

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
- A string containing Flash Player version and platform information.
String
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
function:
getVersion
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
[optional] - A string specifying the name of the scene to which the playhead is
scene:String
sent.
- A number representing the frame number, or a string representing the label
frame:Object
of the frame, to which the playhead is sent.
Global Functions
51

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash lite 2

Table of Contents