MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 489

Actionscript language reference
Table of Contents

Advertisement

XMLSocket.send()
Availability
Flash Player 5.
Usage
myXMLSocket.send(object:XML) : Void
Parameters
An XML object or other data to transmit to the server.
object
Returns
Nothing.
Description
Method; converts the XML object or data specified in the
transmits it to the server, followed by a zero (0) byte. If
XML textual representation of the XML object. The send operation is asynchronous; it returns
immediately, but the data may be transmitted at a later time. The
does not return a value indicating whether the data was successfully transmitted.
If the
myXMLSocket
XMLSocket.send()
Example
The following example shows how you could specify a user name and password to send the XML
object
to the server:
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
XMLSocket.connect()
object is not connected to the server (using
operation will fail.
parameter to a string and
object
is an XML object, the string is the
object
XMLSocket.send()
XMLSocket.connect()
XMLSocket.send()
method
), the
489

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