User Guide
230 ActionScript language elements
Example
The following example sets status equal to the amount of free memory:
status = fscommand2("GetFreePlayerMemory");
GetMaxBatteryLevel fscommand2 Command
GetMaxBatteryLevel
Returns the maximum battery level of the device. It is a numeric value greater than 0.
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example sets the the maxBatt variable to the maximum battery level:
maxBatt = fscommand2("GetMaxBatteryLevel");
GetMaxSignalLevel fscommand2 Command
GetMaxSignalLevel
Returns the maximum signal strength level as a numeric value.
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example assigns the maximum signal strength to the sigStrengthMax variable:
sigStrengthMax = fscommand2("GetMaxSignalLevel");
Command Parameters Value Returned
GetMaxBatteryLevel None -1: Not supported. Other values: The
maximum battery level.
Command Parameters Value Returned
GetMaxSignalLevel None -1: Not supported. Other numeric values: The
maximum signal level.