Skip to main content
Participant
July 21, 2021
Question

how to send variable to email from canvas?

  • July 21, 2021
  • 0 replies
  • 99 views
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?

 

This topic has been closed for replies.