To clarify, I stripped out everything but the core functionality that is having an issue.
My Actionscript (inside Flash MX)
// construct an XML object to send
sendXML = new XML();
sendElement = sendXML.createElement("Request");
sendElement.attributes.status = "food";
sendXML.appendChild(sendElement);
// construct an XML object for the reply
getXML = new XML();
getXML.onLoad = onGetReply;
// send XML to the server
sendXML.sendAndLoad("xml.php", getXML);
// a function to run when a reply comes back
function onGetReply() {
var XMLdata = this.firstChild;
_root.result = XMLdata.attributes.status;
}
There is one object for testing purposes, a text box that displays the variable "result"
I have then created a simple PHP script (xml.php, as called in the XML.sendAndLoad):
<?php
print '<REPLY status="yummy" />';
?>
As expected, the text box says "Yummy".
Ok, cool...
I can also check and see that yes, there is POST data coming to my PHP file from my flash file... but, uhm... that is where it falls apart.
How do I access POST data with no variable name? Or, if it is posting as a file, how do I access a file with no file name. I have tried to access $FILES['sendXML']['tmp_name'] to see if maybe the file was sent under that name, but nope.
Please help