Returns
Nothing.
Description
Method; encodes the specified XML object into an XML document and sends it to the
specified URL using the
method in a browser. The Flash test environment uses only the
POST
method.
GET
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
A string; the destination URL for the specified XML object. If the SWF file issuing this
url
call is running in a web browser,
must be in the same domain as the SWF file.
url
An XML object created with the XML constructor method that will
targetXMLobject
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
method, downloads the server's response, and loads it into the
POST
object specified in the parameters. The server response loads the same as
targetXMLobject
the response to the
method.
XML.load()
212
Server-Side ActionScript Language Reference
Need help?
Do you have a question about the FLASH MEDIA SERVER 2-SERVER-SIDE ACTIONSCRIPT LANGUAGE and is the answer not in the manual?