Hi!
This might be a really simple thing, but im new at as3
I want to POST some variables from flash to a PHP-file and at the same time go to that page to show the data I got from flash. I have only found answers on how to send variables to a PHP-file and then get data back (and continue in the flash-file).
var loader:URLLoader = new URLLoader();
var req:URLRequest = new URLRequest("My PHP url");
var variables:URLVariables = new URLVariables();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
req.method = URLRequestMethod.POST;
function sendData():void {
variables.name = "A name";
variables.age = "An age";
variables.email = "An email";
req.data = variables;
loader.load(req);
}
sendData();
How can it be done?