Flash Lite 1.x ActionScript Language Reference |
|
|
|
| Flash Lite Specific Language Elements > fscommand2() > GetPowerSource | |||
Flash Lite 1.1.
Returns a value that indicates whether the power source is currently supplied from a battery or from an external power source.
|
Command |
Parameters |
Value returned |
|---|---|---|
|
|
None. |
-1: Not supported. 0: Device is operating on battery power. 1: Device is operating on an external power source. |
The following example sets the myPower variable to indicate the power source, or to -1 if it was unable to do so:
myPower = fscommand2("GetPowerSource");
|
|
|
|