MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference page 1307

Actionscript 2.0 language reference
Table of Contents

Advertisement

For more information, see the following:
Chapter 17, "Understanding Security," in Learning ActionScript 2.0 in Flash
The Flash Player 8 Security white paper at http://www.macromedia.com/go/fp8_security
The Flash Player 8 Security-Related API white paper at http://www.macromedia.com/go/
fp8_security_apis
Availability: ActionScript 1.0; Flash Player 5
Parameters
- The destination URL for the specified XML object.
url:String
[optional] - The browser window to show data that the server returns:
target:String
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
If you do not specify a
[optional] - the method of the HTTP protocol used: either
method:String
. In a browser, the default value is
"POST"
value is
.
"GET"
Returns
-
if no parameters are specified,
Boolean
false
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
sendAndLoad (XML.sendAndLoad method)
parameter, it is the same as specifying
target
"POST"
. In the Flash test environment, the default
otherwise.
true
.
_self
or
"GET"
XML
1307

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents