
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").
Summary of Contents for Flash Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...