Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Specific Language Elements > fscommand2() > GetMaxBatteryLevel | |||
Flash Lite 1.1.
Returns the maximum battery level of the device. It is a numeric value greater than 0.
|
Command |
Parameters |
Value returned |
|---|---|---|
|
|
None. |
-1: Not supported. other values: The maximum battery level. |
The following example sets the maxBatt variable to the maximum battery level:
maxBatt = fscommand2("GetMaxBatteryLevel");
|
|
|
|