Hello, I would like to ask how do I solve this problem of loading external XML (say, from a news feed) in flash.
Went to these few sites, but they do not seem to help:
http://theflashblog.com/?p=14
http://www.adobe.com/cfusion/knowled…fm?id=tn_16520
http://www.thegoldenmean.com/technique/rssReader11.html
The problem with my flash file is, If i were to use the php method of bypassing the security Sandbox as shown on these webpages, the PHP files work fine ONLY when the files are in the same site as the swf file.
I believe that the problem has nothing to do with my server being unable to read PHP files as it supports PHP.
My code for flash (there’s only one frame) is:
example_xml = new XML();
example_xml.ignoreWhite = true;
example_xml.load(“http://toilet9999.phpnet.us/loadXML.php”);
example_xml.onLoad = function (success) {
if (success) {
ciao.text = _root.example_xml.firstChild.childNodes[11].childNodes[4].firstChild.nodeValue;
}
};
and the code for the PHP file is:
<?php
$dataURL = “http://toiletfreak.blogspot.com/atom.xml”;
//note that this will not follow redirects
readfile($dataURL);
?>
Help is greatly appreciated! =)
Toiletfreak