Method summary for the XMLSocket class
Method
XMLSocket.close()
XMLSocket.connect()
XMLSocket.send()
Event handler summary for the XMLSocket class
Event handler
XMLSocket.onClose
XMLSocket.onConnect
XMLSocket.onData
XMLSocket.onXML
Constructor for the XMLSocket class
Availability
Flash Communication Server MX 1.5.
Usage
new XMLSocket(streamOrFlash)
Parameters
A string indicating whether this object is an XMLSocket object or an
streamOrFlash
XMLStreams object. The parameter can have one of the following two values:
.
"stream"
Returns
A reference to an XMLSocket object or an XMLStreams object.
Description
Constructor; creates a new XMLSocket object (
(
). The XMLSocket and XMLStreams objects are not initially connected to any
"stream"
server. You must call
Description
Closes an open socket connection.
Establishes a connection to the specified server.
Sends an XML object to the server.
Description
Invoked when an XMLSocket connection is closed.
Invoked by Flash Media Server when a connection request initiated
through
XMLSocket.connect()
Invoked when an XML message has been downloaded from the
server.
Invoked when an XML object arrives from the server.
XMLSocket.connect()
succeeds or fails.
) or a new XMLStreams object
"flash"
to connect the object to a server.
or
"flash"
XMLSocket class
219
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?