Alright, here goes:
I’m creating a personal website and I’ve been working on a section where you can get the latest news headlines. Everything seems to work perfectly when I’m in CS3 but when I put the .swf file onto my site it doesn’t show anything.
the site is here:
http://filebox.vt.edu/users/patel/index3.html
and this is the code:
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
lb.addEventListener(Event.CHANGE, itemChange);
function itemChange(e:Event):void
{
ta2.text = lb.selectedItem.label;
ta.text = lb.selectedItem.data;
//ta3.htmlText = “For full story click here " + lb.selectedItem.link;
ta3.htmlText = “<a href=”” + lb.selectedItem.link + “”>" + “For full story CLICK HERE” + “</a>”;
}
var xml:XML;
function onLoaded(e:Event):void
{
xml = new XML(e.target.data);
var il: XMLList = xml.channel.item;
for(var i:uint=0; i<il.length(); i++)
{
lb.addItem({data:il.description.text(), link:il.link.text(),
label:il.title.text()*});
}
}
loader.load(new URLRequest(“http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml”));