Hi,
I’m trying to load an XML generated file from one subdomain to another subdomain that hosts the swf file.
The xml file is located here:
http://xml.mydomain.com/cgi-bin/getxml.cgi
getxml.cgi outputs valid xml.
Now, my swf file is located here:
http://static.mydomain.com/xmlLoad.swf
Within my flash file I load the xml as such:
var xmlData:XML = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://xml.mydomain.com/getxml.cgi");
I have a cross domain policy setup on the root:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" />
</cross-domain-policy>
Now when I view my flash file it doesn’t do anything? It is not retrieving the data - if I test in the Flash Player it works fine so it must be the cross domain stuff.
Exporting ActionScript 2 and Flash Player 7.
Cheers,
Chris