User Guide
212 Server-Side ActionScript Language Reference
Returns
Nothing.
Description
Method; encodes the specified XML object into an XML document and sends it to the
specified URL using the
POST method in a browser. The Flash test environment uses only the
GET method.
Example
The following example defines an XML packet and sets the content type for the XML object.
The data is then sent to a server and writes the result in a File object.
var my_xml = new XML("<highscore><name>Ernie</name>
<score>13045</score></highscore>");
my_xml.contentType = "text/xml";
my_xml.send("http://www.flash-mx.com/mm/highscore.cfm", myFile);
See also
XML.sendAndLoad()
XML.sendAndLoad()
Media Server 2.
Usage
my_xml.sendAndLoad(url, targetXMLobject)
Parameters
url A string; the destination URL for the specified XML object. If the SWF file issuing this
call is running in a web browser,
url must be in the same domain as the SWF file.
targetXMLobject An XML object created with the XML constructor method that will
receive the return information from the server.
Returns
Nothing.
Description
Method; encodes the specified XML object into an XML document, sends it to the specified
URL using the
POST method, downloads the server’s response, and loads it into the
targetXMLobject object specified in the parameters. The server response loads the same as
the response to the
XML.load() method.