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

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

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.
Command
GetPowerSource
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example sets the
was unable to do so:
myPower = fscommand2("GetPowerSource");

GetSignalLevel fscommand2 Command

GetSignalLevel
Returns the current signal strength as a numeric value.
Command
GetSignalLevel
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example assigns the signal level value to the
sigLevel = fscommand2("GetSignalLevel");
Parameters
Value Returned
None
-1
battery power.
external power source.
variable to indicate the power source, or to
myPower
Parameters
Value Returned
None
: Not supported. Other numeric values: The
-1
current signal level, ranging from
maximum value returned by
GetMaxSignalLevel
: Not supported.
: Device is operating on
0
: Device is operating on an
1
.
variable:
sigLevel
fscommand2 Commands
if it
-1
to the
0
237

Advertisement

Table of Contents
loading

Table of Contents