144
Flash Lite Specific Language Elements
GetNetworkStatus
Availability
Flash Lite 1.1.
Description
Returns a value indicating the network status of the phone (that is, whether there is a network
registered and whether the phone is currently roaming).
Example
The following example assigns the status of the network connection to the
networkstatus
variable, and then uses a
switch
statement to update a text field with the status:
networkstatus = fscommand2("GetNetworkStatus");
switch(networkstatus) {
case -1:
/:= "network status not supported" add newline;
break;
case 0:
/:= "no network registered" add newline;
break;
case 1:
/:= "on home network" add newline;
break;
case 2:
/:= "on extended home network" add newline;
break;
case 3:
/:= "roaming" add newline;
break;
}
Command
Parameters Value returned
"GetNetworkStatus"
None.
-1: The command is not supported.
0: No network registered.
1: On home network.
2: On extended home network.
3: Roaming (away from home network).
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...