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 Player 5

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); // WIN 8,0,1,0
trace($version); // WIN 8,0,1,0
trace(System.capabilities.version); // 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)


Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00001181.html