Server-Side Communication ActionScript > NetConnection.close

 

NetConnection.close

Availability

Flash Communication Server MX.

Usage

myNetConnection.close()

Parameters

None.

Returns

Nothing.

Description

Method; closes the connection with the server. After you close the connection, you can reuse the NetConnection instance and reconnect to an old application or connect to a new one.

Note: The NetConnection.close method has no effect on HTTP connections.

Example

The following code closes the NetConnection instance myNetConn:

myNetConn.close();