Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript language elements > Global Functions > 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
String - A string containing Flash Player version and platform information.
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).
os (capabilities.os property), version (capabilities.version property)
Version 8
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00001731.html
Comments
ClayHalliwell said on Jul 30, 2007 at 11:16 AM :