Copy link to clipboard
Copied
For ActionScript3 the code is
var myData:URLVariables = new URLVariables();
myData.phone = "itel A48";
var myRequest:URLRequest = new URLRequest("https://server/send.php");
myRequest.data = myData;
myRequest.method = URLRequestMethod.POST;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
try
{
loader.load(myRequest);
}
catch (error:Error)
{
trace('Error: unable to load the document.');
}
what code should it be for Canvas?
Have something to add?
Find more inspiration, events, and resources on the new Adobe Community
Explore Now