If I have the xml load directly from the flash (ie, I have it go directly to the site, instead of through ‘proxy.php’), it will load the data from the xml, but when I have it go through a php script, nothing shows up, it’s just blank
here is my flash file script:
xmlGetBtn.onRelease = function(){
var xmlProxy:XML = new XML();
xmlProxy.ignoreWhite = true;
xmlProxy.onLoad = function(bSuccess:Boolean):Void {
if(bSuccess) {
xmlDataBox.text = this;
}
else {
xmlDataBox = "Couldn't Load";
}
};
xmlProxy.load("Proxy.php")
}
and the php script looks like:
<?php
$dataURL = "http://www.w3schools.com/xml/simple.xml";
readfile($dataURL);
?>
I have tried every tutorial and script I could find, but nothing seems to work. Also, is it possible to load external data into flash from a .jsp?
Thanks alot if anyone can help me solve this problem.