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

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

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).
Command
GetNetworkStatus
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example assigns the status of the network connection to the
variable, and then uses a
Parameters
None
statement to update a text field with the status:
switch
Value Returned
: The command is not supported.
-1
network registered.
1
On extended home network.
(away from home network).
fscommand2 Commands
: No
0
: On home network.
2
: Roaming
3
networkstatus
:
235

Advertisement

Table of Contents
loading

Table of Contents