Hi, I was wondering if someone would be kind enough and tell me what needs to be done in order to get item display onto the stage in Action Script 3. I wrote this code to receive RSS Feeds and it seems to work perfectly, however, I can’t get it to display on the stage. When I test, it displays code in the “Output” window. Thank you for your time and consideration.
init ();
function init () :void
{
var urlLoader : URLLoader = new URLLoader ();
urlLoader.addEventListener ( Event.COMPLETE, OnRSSLoaded, false, 0, true );
urlLoader.load ( new URLRequest ( "http://api.flickr.com/services/feeds/photos_public.gne?format=rss2" ) );
}
function OnRSSLoaded (event : Event) : void
{
var urlLoader : URLLoader = event.target as URLLoader;
var xml : XML = XML( urlLoader.data );
for each (var item:XML in xml..item)
{
trace (item.title );
trace (item.description );
}
}