User Guide

238 ActionScript language elements
GetTotalPlayerMemory fscommand2 Command
GetTotalPlayerMemory
Returns the total amount of heap memory, in kilobytes, allocated to Flash Lite.
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example sets the
status variable to the total amount of heap memory:
status = fscommand2("GetTotalPlayerMemory");
GetVolumeLevel fscommand2 Command
GetVolumeLevel
Returns the current volume level of the device as a numeric value.
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example assigns the current volume level to the volume variable:
volume = fscommand2("GetVolumeLevel");
trace (volume); // output: 50
Command Parameters Value Returned
GetTotalPlayerMemory None -1: Not supported. 0 or positive value: Total
kilobytes of heap memory.
Command Parameters Value Returned
GetVolumeLevel None -1: Not supported. Other numeric values: The
current volume level, ranging from
0 to the
value returned by
fscommand2("GetMaxVolumeLevel").