Thanks dude...
That was a good site to read up on...
I had worked out how to access the XML data in PHP, but I was having trouble with responding to MX. I tried Tupps' code , but I can't access the ACK via loginReplyXML:
on (release) {
// A. Construct a XML document with a LOGIN element
loginXML = new XML();
loginElement = loginXML.createElement("LOGIN");
loginElement.attributes.username = "MyDog";
loginElement.attributes.password = "barkbark";
loginXML.appendChild(loginElement);
// this only works in version 5,0,42,0 or greater (test in web browser)
loginXML.contentType = "text/xml";
// B. Construct a XML object to hold the server's reply
loginReplyXML = new XML();
loginReplyXML.onLoad = onLoginReply;
// C. Send the LOGIN element to the server,
//place the reply in loginReplyXML
loginXML.sendAndLoad("xmlreader.php", loginReplyXML);
}
When I try to access loginReplyXML in the onLoginReply function, all I get is standard HTML headers (regardless of what I output in the PHP code). I do surprisingly receive confirmation that the PHP script was accessed:
function onLoginReply (insertimaginativename)
{
? insertimaginativename (do blah) : (do blah);
}
So depending on the variable's value, you can receive confirmation that the script was accessed successfully - which in some case might be all that you need. But it'll be neat if I can access the returned XML object.
If you have any other ideas... shoot 🙂
SirDude.
P.S The Main thing that is missing in Flash help is the "contentType " statement and with the PHP side of things is info on $HTTP_RAW_POST_DATA