# New to AS3 and xml...please help

**URL:** https://forum.kirupa.com/t/new-to-as3-and-xml-please-help/259695
**Category:** flash
**Created:** [May 7, 2008, 10:04pm UTC](https://forum.kirupa.com/t/new-to-as3-and-xml-please-help/259695 "2008-05-07T22:04:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![prynce17](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@prynce17](https://forum.kirupa.com/u/prynce17)
#### Post date: [May 7, 2008, 10:04pm UTC](https://forum.kirupa.com/t/new-to-as3-and-xml-please-help/259695/1 "2008-05-07T22:04:40Z")

</div>

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](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](https://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](http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml)”));

---

<div class="post-metadata">

### Author: ![wvxvw](https://avatars.discourse-cdn.com/v4/letter/w/a9a28c/32.png) [@wvxvw](https://forum.kirupa.com/u/wvxvw)
#### Post date: [May 8, 2008, 10:00pm UTC](https://forum.kirupa.com/t/new-to-as3-and-xml-please-help/259695/2 "2008-05-08T22:00:51Z")

</div>

Hm… actualy, you may have some PHP/ASP script on your server that’ll get the feed whence flash requests it. So that flash won’t have to load the feed by itself.
