03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

For more information, see the following:<br />

■ "Underst<strong>and</strong>ing Security" in Learning <strong>ActionScript</strong> <strong>2.0</strong> in Flash<br />

■ The Flash Player 9 Security white paper at http://www.adobe.com/go/fp9_0_security<br />

■ The Flash Player 8 Security-Related API white paper at http://www.adobe.com/go/<br />

fp8_security_apis<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 5<br />

Parameters<br />

url:String - The destination URL for the specified XML object.<br />

target:String [optional] - The browser window to show data that the server returns:<br />

■ _self specifies the current frame in the current window.<br />

■ _blank specifies a new window.<br />

■ _parent specifies the parent of the current frame.<br />

■ _top specifies the top-level frame in the current window.<br />

If you do not specify a target parameter, it is the same as specifying _self.<br />

method:String [optional] - the method of the HTTP protocol used: either "GET" or<br />

"POST". In a browser, the default value is "POST". In the Flash test environment, the default<br />

value is "GET".<br />

Returns<br />

Boolean - false if no parameters are specified, true otherwise.<br />

Example<br />

The following example defines an XML packet <strong>and</strong> sets the content type for the XML object.<br />

The data is then sent to a server <strong>and</strong> shows a result in a browser window.<br />

var my_xml:XML = new XML("Ernie13045");<br />

my_xml.contentType = "text/xml";<br />

my_xml.send("http://www.flash-mx.com/mm/highscore.cfm", "_blank");<br />

Press F12 to test this example in a browser.<br />

See also<br />

sendAndLoad (XML.sendAndLoad method)<br />

1328 <strong>ActionScript</strong> classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!