EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Getnetworkstatus Fscommand2 Command

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
fscommand2 Commands 235
case 2:
_root.myText += "pending request, contacting network" + "\n";
break;
case 3:
_root.myText += "pending request, resolving domain" + "\n";
break;
case 4:
_root.myText += "failed, network error" + "\n";
break;
case 5:
_root.myText += "failed, couldn't reach server" + "\n";
break;
case 6:
_root.myText += "HTTP error" + "\n";
break;
case 7:
_root.myText += "DNS failure" + "\n";
break;
case 8:
_root.myText += "request has been fulfilled" + "\n";
break;
case 9:
_root.myText += "request timedout" + "\n";
break;
case 10:
_root.myText += "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).

Table of Contents

Related product manuals