The URLVariables
class allows you to define data to be sent along with a URLRequest
.
Example:
var variables:URLVariables = new URLVariables();
variables.prop = "hello";
variables.anotherProp = 10;
var request:URLRequest = new URLRequest('http://someservice.com');
request.data = variables;
You can either send the request via a URLLoader
or open the request URL with the variables attached in the querystring using navigateToURL
.