actionscript-3 – Sending and Receiving Data From Servers – Adding variables to your request

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.

if you want to reproduce, please indicate the source:
actionscript-3 – Sending and Receiving Data From Servers – Adding variables to your request - CodeDay