I’m importing some information from an external xml to a dynamic text box, everything works fine so far.
But there’s a <img>src</img> along with <p>info</p> i like to show.
Here’s what I have so far:
var rssLoader:URLLoader = new URLLoader();
var rssURL:URLRequest = new URLRequest("http://www.aftonbladet.se/sportbladet/rss.xml");
rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
rssLoader.load(rssURL);
var rssXML:XML = new XML();
rssXML.ignoreWhitespace = true;
function rssLoaded(evt:Event):void {
rssXML = XML(rssLoader.data);
ticker.text = rssXML.channel.title;
ticker_rubrik.text = rssXML.channel.item[0].title;
ticker_text.text = rssXML.channel.item[0].description;
trace(rssXML.channel.item[0].description);
}
The “trace(rssXML.channel.item[0].description);” is containing the information I would like to show. Here’s what it contains:
<img src="http://gfx.aftonbladet-cdn.se/image/15392112/250/widescreen/a2a78c756ede9/39s55-brynasjubel-413.jpg " /><p>Så vände Brynäs kris till succé.</p>
But what I would like to do, is excluding the information inside the <img></img>.