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