public close() : Void
Closes the connection that the XMLSocket object specifies.
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();