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.
Содержание FLASH MX PROFESSIONAL 2004 - FLASH LITE 1.1...
Страница 1: ...Macromedia Flash Lite 1 1 Authoring Guidelines...
Страница 6: ...6 Contents...
Страница 10: ...10 Chapter 1 Introduction...
Страница 20: ...20 Chapter 2 Optimizing Content...
Страница 56: ...56 Chapter 7 Testing Content...
Страница 58: ...58 Chapter 8 Development Kit Examples...
Страница 74: ...74 Appendix B Supported ActionScript Properties...