Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Specific Language Elements > fscommand2() > GetBatteryLevel | |||
Flash Lite 1.1.
Returns the current battery level. It is a numeric value that ranges from 0 to the maximum value returned by the GetMaxBatteryLevel variable.
|
Command |
Parameters |
Value returned |
|---|---|---|
|
|
None. |
-1: Not supported. Other numeric values: The current battery level. |
The following example sets the battLevel variable to the current level of the battery:
battLevel = fscommand2("GetBatteryLevel");
|
|
|
|