fscommand2 Commands
235
case 2:
_root.= "pending request, contacting network" + "\n";
break;
case 3:
_root.= "pending request, resolving domain" + "\n";
break;
case 4:
_root.= "failed, network error" + "\n";
break;
case 5:
_root.= "failed, couldn't reach server" + "\n";
break;
case 6:
_root.= "HTTP error" + "\n";
break;
case 7:
_root.= "DNS failure" + "\n";
break;
case 8:
_root.= "request has been fulfilled" + "\n";
break;
case 9:
_root.= "request timedout" + "\n";
break;
case 10:
_root.= "no HTTP request has been made" + "\n";
break;
}
GetNetworkStatus fscommand2 Command
GetNetworkStatus
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).
Availability:
ActionScript 1.0; Flash Lite 1.1
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:
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 Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...