You can also use
or
for sending variables. The following example uses
to append
GET
POST
GET
variables to a URL:
var firstName:String = "Gus";
var lastName:String = "Richardson";
var age:Number = 92;
myBtn_btn.onRelease = function() {
getURL("http://www.macromedia.com", "_blank", "GET");
};
The following ActionScript uses
to send variables in the HTTP header. Make sure you test
POST
your documents in a browser window, because otherwise your variables are sent using
:
GET
var firstName:String = "Gus";
var lastName:String = "Richardson";
var age:Number = 92;
getURL("http://www.macromedia.com", "_blank", "POST");
See also
XML.send(), XML.sendAndLoad(),
XMLSocket.send()
getURL()
169
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?