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.

Example<br />

The following example sets the status variable to indicate the soft key location, or to -1 if<br />

soft keys are not supported on the device:<br />

status = fscomm<strong>and</strong>2("GetSoftKeyLocation");<br />

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

GetTotalPlayerMemory<br />

Returns the total amount of heap memory, in kilobytes, allocated to Flash Lite.<br />

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

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

0 or positive value: Total kilobytes of<br />

heap memory.<br />

Example<br />

The following example sets the status variable to the total amount of heap memory:<br />

status = fscomm<strong>and</strong>2("GetTotalPlayerMemory");<br />

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

GetVolumeLevel<br />

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

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

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

Other numeric values: The current volume level,<br />

ranging from 0 to the value returned by<br />

fscomm<strong>and</strong>2("GetMaxVolumeLevel").<br />

Example<br />

The following example assigns the current volume level to the volume variable:<br />

volume = fscomm<strong>and</strong>2("GetVolumeLevel");<br />

trace (volume); // output: 50<br />

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

Quit<br />

Causes the Flash Lite player to stop playback <strong>and</strong> exit.<br />

222 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!