checking success of data sent to php
Hi Everyone,
I'm trying to send some variables to a php script, and I don't know how to figure out if I'm successful or not. Here's the AS 3 code I have now (the code snippet assumes that myArray was defined earlier):
function sendData():void {
var sendToPHP:URLVariables = new URLVariables;
// mode is a variable in the PHP script that tells the script what to do
sendToPHP:URLVariables.mode = "add_go";
sendToPHP:URLVariables.myData = myArray.toString();
var myURLRequest:URLRequest = new URLRequest("http://www.someDomain.com/index.php");
myURLRequest.data = sendToPHP;
navigateToURL(myURLRequest, '_blank');
}
I'm completely new to sending data outside of Flash, so I hope I'm not too far off track. I'm not a PHP developer either, I just want to know if there's a way to add an event complete listener that might tell me if this transaction was successful or not.
Thanks in advance!
-Dave