EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Getpowersource Fscommand2 Command; Getsignallevel Fscommand2 Command

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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.

Table of Contents

Related product manuals