Parameters
String; the destination URL for the specified XML object.
url
String; the browser window to show data that the server returns:
window
•
specifies the current frame in the current window.
_self
•
specifies a new window.
_blank
•
specifies the parent of the current frame.
_parent
•
specifies the top-level frame in the current window.
_top
This parameter is optional; if you do not specify a
specifying
_self
Returns
Nothing.
Description
Method; encodes the specified XML object into an XML document, and sends it to the specified
URL using the
POST
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 shows a result in a browser window.
var my_xml: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", "_blank");
See also
XML.sendAndLoad()
XML.sendAndLoad()
Availability
Flash Player 5; behavior changed in Flash Player 7.
Usage
my_xml.sendAndLoad(url:String, targetXMLobject:XML) : Void
Parameters
A string; the destination URL for the specified XML object. If the SWF file issuing this call
url
is running in a web browser,
Description section.
targetXMLobject
the return information from the server.
.
method in a browser. The Flash test environment only uses the
must be in the same domain as the SWF file; for details, see the
url
An XML object created with the XML constructor method that will receive
parameter, it is the same as
window
XML.sendAndLoad()
method.
GET
475
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?