Summary of the Methods and Event Handlers of the XMLSocket Class

Summary of the Methods and Event Handlers of the XMLSocket Class

This section provides a summary of the properties and methods of the XMLSocket class. Table 10-2 shows the methods of the XMLSocket class.

Table 10-2: Summary of methods of the XMLSocket class

Method

Explanation

close

Closes the connection to the socket server.

connect

Connects to the socket server. You need to specify the server address and port.

send

Sends data to the server. Usually used with XML information.

Table 10-3 lists the event handlers for the XMLSocket class.

Table 10-3: Summary of event handlers for the XMLConnector class

Event

Explanation

onClose

Called when the connection to the socket server is closed.

onConnect

Called when a connection is made to the socket server.

onData

Called when the data is downloaded from the server.

onXML

Called when the data has been parsed into an XML object.



Foundation XML for Flash
Foundation XML for Flash
ISBN: 1590595432
EAN: 2147483647
Year: 2003
Pages: 93
Authors: Sas Jacobs

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net