XMLSocket class
219
Method summary for the XMLSocket class
Event handler summary for the XMLSocket class
Constructor for the XMLSocket class
Availability
Flash Communication Server MX 1.5.
Usage
new XMLSocket(
streamOrFlash
)
Parameters
streamOrFlash
A string indicating whether this object is an XMLSocket object or an
XMLStreams object. The parameter can have one of the following two values:
"flash"
or
"stream"
.
Returns
A reference to an XMLSocket object or an XMLStreams object.
Description
Constructor; creates a new XMLSocket object (
"flash"
) or a new XMLStreams object
(
"stream"
). The XMLSocket and XMLStreams objects are not initially connected to any
server. You must call
XMLSocket.connect()
to connect the object to a server.
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
Invoked when an XMLSocket connection is closed.
XMLSocket.onConnect
Invoked by Flash Media Server when a connection request initiated
through
XMLSocket.connect()
succeeds or fails.
XMLSocket.onData
Invoked when an XML message has been downloaded from the
server.
XMLSocket.onXML
Invoked when an XML object arrives from the server.