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, the text file is completely blank, it doesnt even say “Couldn’t Load”.
here is my flash file script:
[LEFT]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")
}[/LEFT]
and the php script looks like:
[LEFT]
<?php
$dataURL = "http://www.w3schools.com/xml/simple.xml";
echo readfile($dataURL);
?>
[/LEFT]
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 try to solve this problem.