public XMLSocket()
Creates a new XMLSocket object. The XMLSocket object is not initially connected to any server. You must call the XMLSocket.connect() method to connect the object to a server.
Example
The following example creates an XMLSocket object:
var socket:XMLSocket = new XMLSocket();