Macromedia flash mx professional 2004-macromedia flash lite 1.1 authoring guidelines Benutzerhandbuch

Seite von 86
Platform integration commands
41
GetPowerSource()
The 
GetPowerSource()
 function returns a value indicating whether the power source is currently 
supplied a battery or externally supplied.
This function is executed immediately upon invocation. If the 
GetPowerSource()
 function is 
not supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetPowerSource” )
Return value
A value of -1 if the function is not supported; 0 if the mobile phone is operating on battery 
power; 1 if the mobile phone is operating on an external power source.
Network information
The commands in this section provide the mobile phone’s network information to Flash content 
on the mobile phone. 
GetMaxSignalLevel()
The 
GetMaxSignalLevel()
 function returns the maximum signal strength level. It is a numeric 
value greater than zero.
This function is executed immediately upon invocation. If 
GetMaxSignalLevel()
 is not 
supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetMaxSignalLevel” )
Return value
A value of -1 if the function is not supported; otherwise, the maximum signal level, returned as a 
number.
GetNetworkConnectStatus()
The 
GetNetworkConnectStatus()
 function returns a value indicating the current network 
connection status.
This function is executed immediately upon invocation. If 
GetNetworkConnectStatus()
 is not 
supported, a value of -1 is returned.
Syntax
status = FSCommand2( "GetNetworkConnectStatus” )
Return value
A value of -1 if the function is not supported; otherwise, one of the following values:
0
: There is currently an active network connection.
1
: The mobile phone is in the process of attempting to connect to the network.