Flash Player 5.
The XMLSocket object implements client sockets that allow the computer running the Flash Player to communicate with a server computer identified by an IP address or domain name. For more information about this object, including security considerations, see .
Method | Description |
---|---|
XMLSocket.close() |
Closes an open socket connection. |
XMLSocket.connect() |
Establishes a connection to the specified server. |
XMLSocket.send() |
Sends an XML object to the server. |
Event handler | Description |
---|---|
XMLSocket.onClose() | A callback function that is invoked when an XMLSocket connection is closed. |
XMLSocket.onConnect() | A callback function that is invoked by the Flash Player when a connection request initiated through the XMLSocket.connect() method has succeeded or failed |
XMLSocket.onData() | A callback function that is invoked when an XML message has been downloaded from the server. |
XMLSocket.onXML() | A callback function that is invoked when an XML object arrives from the server. |
Flash Player 5.
new XMLSocket()
None.
A reference to an object of type XMLSocket.
Constructor; creates a new XMLSocket object. The XMLSocket object is not initially connected to any server. You must call XMLSocket.connect()
to connect the object to a server.
myXMLSocket = new XMLSocket();