MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference page 141

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

Advertisement

Example
The following example assigns the network connection status to the
and then uses a
switch
connectstatus = fscommand2("GetNetworkConnectStatus");
switch (connectstatus) {
case -1 :
/:myText += "connectstatus not supported" add newline;
break;
case 0 :
/:myText += "connectstatus shows active connection" add newline;
break;
case 1 :
/:myText += "connectstatus shows attempting connection" add newline;
break;
case 2 :
/:myText += "connectstatus shows no connection" add newline;
break;
case 3 :
/:myText += "connectstatus shows suspended connection" add newline;
break;
case 4 :
/:myText += "connectstatus shows indeterminable state" add newline;
break;
}
GetNetworkName
Availability
Flash Lite 1.1.
Description
Sets a parameter to the name of the current network.
Command
Parameters
"GetNetworkName"
networkName
network name. It can be either the name
of a variable or a string value that
contains the name of a variable.
If the network is registered and its name
can be determined,
the network name; otherwise, it is set to
the empty string.
statement to update a text field with the status of the connection:
String representing the
networkname
connectstatus
Value returned
-1: Not supported.
0: No network is registered.
1: Network is registered, but
network name is not known.
2: Network is registered, and
is set to
network name is known.
variable,
fscommand2()
141

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Table of Contents