fscommand2()
141
Example
The following example assigns the network connection status to the
connectstatus
variable,
and then uses a
switch
statement to update a text field with the status of the connection:
connectstatus = fscommand2("GetNetworkConnectStatus");
switch (connectstatus) {
case -1 :
/:= "connectstatus not supported" add newline;
break;
case 0 :
/:= "connectstatus shows active connection" add newline;
break;
case 1 :
/:= "connectstatus shows attempting connection" add newline;
break;
case 2 :
/:= "connectstatus shows no connection" add newline;
break;
case 3 :
/:= "connectstatus shows suspended connection" add newline;
break;
case 4 :
/:= "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
Value returned
"GetNetworkName"
networkName
String representing the
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,
networkname
is set to
the network name; otherwise, it is set to
the empty string.
-1: Not supported.
0: No network is registered.
1: Network is registered, but
network name is not known.
2: Network is registered, and
network name is known.
Summary of Contents for FLASH 8-FLASH
Page 1: ...Flash Lite 1 x ActionScript Language Reference...
Page 6: ...6 Contents...
Page 46: ...46 Flash Lite Global Functions...
Page 62: ...62 Flash Lite Properties...
Page 76: ...76 Flash Lite Statements...
Page 110: ...110 Flash Lite Operators...
Page 162: ...162 Index...