fscommand2 Commands
237
GetPowerSource fscommand2 Command
GetPowerSource
Returns a value that indicates whether the power source is currently supplied from a battery or
from an external power source.
Availability:
ActionScript 1.0; Flash Lite 1.1
Example
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");
GetSignalLevel fscommand2 Command
GetSignalLevel
Returns the current signal strength as a numeric value.
Availability:
ActionScript 1.0; Flash Lite 1.1
Example
The following example assigns the signal level value to the
sigLevel
variable:
sigLevel = fscommand2("GetSignalLevel");
Command
Parameters
Value Returned
GetPowerSource
None
-1
: Not supported.
0
: Device is operating on
battery power.
1
: Device is operating on an
external power source.
Command
Parameters
Value Returned
GetSignalLevel
None
-1
: Not supported. Other numeric values: The
current signal level, ranging from
0
to the
maximum value returned by
GetMaxSignalLevel
.
Summary of Contents for Flash Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...