Flash Lite 2.x and 3.0 ActionScript Language Reference

close (XMLSocket.close method)

public close() : Void

Closes the connection that the XMLSocket object specifies.

Example

The following simple example creates an XMLSocket object, attempts to connect to the server, and then closes the connection.

var socket:XMLSocket = new XMLSocket();
socket.connect(null, 2000);
socket.close();

See also

connect (XMLSocket.connect method)