03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

var firstName:String = "Gus";<br />

var lastName:String = "Richardson";<br />

var age:Number = 92;<br />

myBtn_btn.onRelease = function() {<br />

getURL("http://www.adobe.com", "_blank", "GET");<br />

};<br />

The following <strong>ActionScript</strong> uses POST to send variables in the HTTP header. Make sure you<br />

test your documents in a browser window, because otherwise your variables are sent using<br />

GET:<br />

var firstName:String = "Gus";<br />

var lastName:String = "Richardson";<br />

var age:Number = 92;<br />

getURL("http://www.adobe.com", "_blank", "POST");<br />

See also<br />

loadVariables function, send (XML.send method), sendAndLoad (XML.sendAndLoad<br />

method)<br />

getVersion function<br />

getVersion() : String<br />

Returns a string containing Flash Player version <strong>and</strong> platform information. The getVersion<br />

function returns information only for Flash Player 5 or later versions of Flash Player.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5<br />

Returns<br />

String - A string containing Flash Player version <strong>and</strong> platform information.<br />

Example<br />

The following examples trace the version number of the Flash Player playing the SWF file:<br />

var flashVersion:String = getVersion();<br />

trace(flashVersion); // WIN 8,0,1,0<br />

trace($version); // WIN 8,0,1,0<br />

trace(System.capabilities.version); // WIN 8,0,1,0<br />

The following string is returned by the getVersion function:<br />

WIN 8,0,1,0<br />

This returned string indicates that the platform is Microsoft Windows, <strong>and</strong> the version<br />

number of Flash Player is major version 8, minor version 1 (8.1).<br />

Global Functions 65

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!