Flash Lite 2.x and 3.0 ActionScript Language Reference

GetNetworkConnectionName fscommand2 Command

GetNetworkConnectionName

Returns the name of the active or default network connection. For mobile devices, this connection is also known as an access point.

Note: This command is not supported for BREW devices.

Command

Parameters

Value Returned

GetNetworkConnectionName

None

-1: Not supported
0: Success: returns the active network connection name
1: Success: returns the default network connection name
2: Unable to retrieve the connection name

Example

The following example returns the name of the active or default network connection in the argument myConnectionName:

status = FSCommand2("GetNetworkConnectionName", "myConnectionName");