MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 483

Actionscript language reference
Table of Contents

Advertisement

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 Player 5.
Usage
new XMLSocket() : XMLSocket
Parameters
None.
Returns
A reference to an XMLSocket object.
Description
Constructor; creates a new XMLSocket object. The XMLSocket object is not initially connected
to any server. You must call
Example
The following example creates an XMLSocket object:
var socket:XMLSocket = new XMLSocket();
XMLSocket.close()
Availability
Flash Player 5.
Usage
myXMLSocket.close() : Void
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 Player when a connection request initiated through
has succeeded or failed.
XMLSocket.connect()
Invoked when an XML message has been downloaded from the server.
Invoked when an XML object arrives from the server.
XMLSocket.connect()
to connect the object to a server.
XMLSocket.close()
483

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents