Getversion Function - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

You can also use
or
for sending variables. The following example uses
to append
GET
POST
GET
variables to a URL:
var firstName:String = "Gus";
var lastName:String = "Richardson";
var age:Number = 92;
myBtn_btn.onRelease = function() {
getURL("http://www.macromedia.com", "_blank", "GET");
};
The following ActionScript uses
to send variables in the HTTP header. Make sure you
POST
test your documents in a browser window, because otherwise your variables are sent using
:
GET
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: ActionScript 1.0; Flash Player 5
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).
Global Functions
61

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF