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.

Note: This comm<strong>and</strong> is supported only when Flash Lite is running in st<strong>and</strong>-alone mode. It is<br />

not supported when the player is running in the context of another application (for example,<br />

as a plug-in to a browser).<br />

Comm<strong>and</strong> Parameters Value Returned<br />

FullScreen size -1: Not supported<br />

0: <strong>Support</strong>ed<br />

Example<br />

The following example sets the size of the display area to the full screen:<br />

status = fscomm<strong>and</strong>2("FullScreen", true);<br />

GetBatteryLevel fscomm<strong>and</strong>2 Comm<strong>and</strong><br />

GetBatteryLevel<br />

Returns the current battery level. It is a numeric value that ranges from 0 to the maximum<br />

value returned by the GetMaxBatteryLevel variable.<br />

Note: This comm<strong>and</strong> is not supported for BREW devices.<br />

Comm<strong>and</strong> Parameters Value Returned<br />

GetBatteryLevel None. -1: Not supported<br />

Other numeric values: The current battery level.<br />

Example<br />

The following example sets the battLevel variable to the current level of the battery:<br />

battLevel = fscomm<strong>and</strong>2("GetBatteryLevel");<br />

GetDevice fscomm<strong>and</strong>2 Comm<strong>and</strong><br />

GetDevice<br />

Sets a parameter that identifies the device on which Flash Lite is running. This identifier is<br />

typically the model name.<br />

Comm<strong>and</strong> Parameters Value Returned<br />

GetDevice device String to receive the identifier of the device.<br />

It can be either the name of a variable or a string<br />

value that contains the name of a variable.<br />

212 ActionScript language elements<br />

-1: Not supported.<br />

0: <strong>Support</strong>ed.

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

Saved successfully!

Ooh no, something went wrong!