03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - 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 age:Number = 92;<br />

getURL("http://www.macromedia.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 />

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); // output: WIN 8,0,1,0<br />

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

trace(System.capabilities.version); // output: 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 />

See also<br />

os (capabilities.os property), version (capabilities.version property)<br />

gotoAndPlay function<br />

gotoAndPlay( [scene:String,] frame:Object) : Void<br />

Sends the playhead to the specified frame in a scene <strong>and</strong> plays from that frame. If no scene is<br />

specified, the playhead goes to the specified frame in the current scene. You can use the scene<br />

parameter only on the root Timeline, not within Timelines for movie clips or other objects in<br />

the document.<br />

Global Functions 49

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

Saved successfully!

Ooh no, something went wrong!