Question
Flash + Xml, simple rss feed
So , here's the deal
I foud this tutorial how to make flash read xml file and display it in dynamic text box. So my plan is to make app that connects to online .xml, reads it and displays it in my dynamic tex box. Txt is solved, including filtering, and all I need to be happy is to be able to add images, from that same xml file. So whenever wanted text appears I would like a little image to appear (on the right), depending on text.
Code (xml)
Code for loading xml file
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest(" http://www.kirupa.com/net/files/sampleXML.xml"));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
trace(xmlData);
}
What should I change in xml file and what in as?
Thank you
I foud this tutorial how to make flash read xml file and display it in dynamic text box. So my plan is to make app that connects to online .xml, reads it and displays it in my dynamic tex box. Txt is solved, including filtering, and all I need to be happy is to be able to add images, from that same xml file. So whenever wanted text appears I would like a little image to appear (on the right), depending on text.
Code (xml)
Code for loading xml file
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest(" http://www.kirupa.com/net/files/sampleXML.xml"));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
trace(xmlData);
}
What should I change in xml file and what in as?
Thank you
