Parameters
- An XML object or other data to transmit to the server.
data:Object
Example
The following example shows how you could specify a user name and password to send the
XML object
my_xml
var myXMLSocket:XMLSocket = new XMLSocket();
var my_xml:XML = new XML();
var myLogin:XMLNode = my_xml.createElement("login");
myLogin.attributes.username = usernameTextField;
myLogin.attributes.password = passwordTextField;
my_xml.appendChild(myLogin);
myXMLSocket.send(my_xml);
See also
connect (XMLSocket.connect method)
XMLSocket constructor
public XMLSocket()
Creates a new XMLSocket object. The XMLSocket object is not initially connected to any
server. You must call XMLSocket.connect() to connect the object to a server.
Availability: ActionScript 1.0; Flash Player 5
Example
The following example creates an XMLSocket object:
var socket:XMLSocket = new XMLSocket();
XMLUI
Object
|
+-XMLUI
public class XMLUI
extends Object
The XMLUI object enables communication with SWF files that are used as custom user
interfaces for the flash authoring tool's extensibility features (such as Behaviors, Commands,
Effects, and Tools).
to the server:
XMLUI
1349
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?