Getnetworkconnectstatus 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

GetNetworkConnectStatus fscommand2 Command

GetNetworkConnectStatus
Returns a value that indicates the current network connection status.
Command
GetNetworkConnectStatus
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example assigns the network connection status to the
and then uses a
switch
connectstatus = FSCommand2("GetNetworkConnectStatus");
switch (connectstatus) {
connectstatus = FSCommand2("GetNetworkConnectStatus");
switch (connectstatus) {
connectstatus = FSCommand2("GetNetworkConnectStatus");
switch (connectstatus) {
case -1 :
_root.myText += "connectstatus not supported" + "\n";
break;
case 0 :
_root.myText += "connectstatus shows active connection" + "\n";
break;
case 1 :
_root.myText += "connectstatus shows attempting connection" + "\n";
break;
case 2 :
_root.myText += "connectstatus shows no connection" + "\n";
break;
case 3 :
_root.myText += "connectstatus shows suspended connection" + "\n";
break;
case 4 :
_root.myText += "connectstatus shows indeterminable state" + "\n";
break;
}
232
ActionScript language elements
Parameters
None
statement to update a text field with the status of the connection:
Value Returned
: Not supported.
: There is currently
-1
0
an active network connection.
device is attempting to connect to the
network.
: There is currently no active
2
network connection.
connection is suspended.
connection cannot be determined.
connectstatus
: The
1
: The network
3
: The network
4
variable,

Advertisement

Table of Contents
loading

Table of Contents