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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

GetMaxBatteryLevel<br />

Returns the maximum battery level of the device. It is a numeric value greater than 0.<br />

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

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

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

Other values: The maximum battery level.<br />

Example<br />

The following example sets the the maxBatt variable to the maximum battery level:<br />

maxBatt = fscomm<strong>and</strong>2("GetMaxBatteryLevel");<br />

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

GetMaxSignalLevel<br />

Returns the maximum signal strength level as a numeric value.<br />

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

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

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

Other numeric values: The maximum signal level.<br />

Example<br />

The following example assigns the maximum signal strength to the sigStrengthMax variable:<br />

sigStrengthMax = fscomm<strong>and</strong>2("GetMaxSignalLevel");<br />

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

GetMaxVolumeLevel<br />

Returns the maximum volume level of the device as a numeric value.<br />

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

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

Other values: The maximum volume level.<br />

214 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!