Publishing swf file with xml feed
I am working in actionscript 3 trying to create a flash banner ad that will be put on multiple sites. The ad will grab a rss feed and display a number from that feed insie the banner ad. The Flash file works fine on my local computer when I test it. The feed is showing up just fine in the ad. When I publish the ad for the web and test it out on my server, the feed does not display in the ad. I have checked to make sure network access is selected in the publish settings. I also have a crossdomain.xml policy file on the server with the feed. My server is listed in the policy to allow access. I keep thinking I am overlooking something, but can't figure it out. Any help would be greatly appreciated.
Here is the code for the action script:
var rssLoader:URLLoader = new URLLoader();
var rssURL:URLRequest =
new URLRequest("http://www.rssfeed.com/rssfeed");
rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
rssLoader.load(rssURL);
var rssXML:XML = new XML();
rssXML.ignoreWhitespace = true;
function rssLoaded(e:Event):void{
var rssXML:XML=new XML(e.target.data);
trace (rssXML);
if (rssXML.channel.item[0].description >= 61)
{rssXML.channel.item[0].description="60+"}
testXML.text=rssXML.channel.item[0].description;
}
Here is the crossdomain.xml policy file:
<?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="domain.net"/>
<allow-access-from domain="www.domain.net"/>
<allow-access-from domain="anotherdomain.com"/>
<allow-access-from domain="www.anotherdomain.com"/>
<allow-access-from domain="yetanotherdomain.com>"/>
<allow-access-from domain="www.yetanotherdomain.com>"/>
</cross-domain-policy>
Message was edited by: WRGrun262
