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.

$version property<br />

$version<br />

Deprecated since Flash Lite Player 2.0. This action was deprecated in favor of the<br />

System.capabilities.version property.<br />

String variable; contains the version number of Flash Lite. It contains a major number, minor<br />

number, build number, <strong>and</strong> an internal build number, which is generally 0 in all released<br />

versions. The major number reported for all Flash Lite 1.x products is 5. Flash Lite 1.0 has a<br />

minor number of 1; Flash Lite 1.1 has a minor number of 2.<br />

Example<br />

In the Flash Lite 1.1 player, the following code sets the value of myVersion to "5, 2, 12, 0":<br />

myVersion = $version;<br />

See also<br />

version (capabilities.version property)<br />

_cap4WayKeyAS property<br />

_cap4WayKeyAS<br />

Deprecated since Flash Lite Player 2.0. This action was deprecated in favor of the<br />

System.capabilities.has4WayKeyAS property.<br />

Numeric variable; indicates whether Flash Lite executes ActionScript expressions attached to<br />

key event h<strong>and</strong>lers associated with the Right, Left, Up, <strong>and</strong> Down Arrow keys. This variable is<br />

defined <strong>and</strong> has a value of 1 only when the host application uses four-way key navigation<br />

mode to move between Flash controls (buttons <strong>and</strong> input text fields). Otherwise, this variable<br />

is undefined.<br />

When one of the four-way keys is pressed, if the value of the _cap4WayKeyAS variable is 1,<br />

Flash Lite first looks for a h<strong>and</strong>ler for that key. If it finds none, Flash control navigation<br />

occurs. However, if an event h<strong>and</strong>ler is found, no navigation action occurs for that key. For<br />

example, if a key press h<strong>and</strong>ler for the Down Arrow key is found, the user cannot navigate.<br />

Example<br />

The following example sets canUse4Way to 1 in Flash Lite 1.1, but leaves it undefined in Flash<br />

Lite 1.0 (however, not all Flash Lite 1.1 phones support four-way keys, so this code is still<br />

dependent on the phone):<br />

canUse4Way = _cap4WayKeyAS;<br />

if (canUse4Way == 1) {<br />

90 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!