MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference page 1060

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();
1060
Chapter 2: ActionScript Language Reference
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.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx

Table of Contents