Flash Lite 2.x and 3.0 ActionScript Language Reference

GetFreePlayerMemory fscommand2 Command

GetFreePlayerMemory

Returns the amount of heap memory, in kilobytes, currently available to Flash Lite.

Command

Parameters

Value Returned

GetFreePlayerMemory

None

-1: Not supported.
0 or positive value: Available kilobytes of heap memory.

Example

The following example sets status equal to the amount of free memory:

status = fscommand2("GetFreePlayerMemory");