Xml.send() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

XML.send()

Availability
Flash Player 5.
Usage
my_xml.send(url:String, [window:String]) : Void
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");
Press F12 to test this example in a browser.
See also
XML.sendAndLoad()
1050
Chapter 2: ActionScript Language Reference
.
method in a browser. The Flash test environment only uses the
parameter, it is the same as
window
method.
GET

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents