I have two requirements, and im not sure is those things possible in AS3. Anyway I'll explain what I want.
first, I need to show an <hr/>
tag after the description, its an rss widget so need to seperate with each rss post with a border or hr. Its not possible to make it manually because its came from xml. I'll give you the existing script with me.
second, I need to add utm tag after the urls to trace the clicks, this is actually I need to add after the links 'utm_source=rsswidget', you'll get an idea by seeing the script below
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, onLoaded);
var xml:XML;
function onLoaded(e:Event):void
{
var style:StyleSheet = new StyleSheet();
style.setStyle(".heading", {fontWeight:"bold", color:"#6184b7", fontSize:12});
style.setStyle("body", {fontStyle:"italic"});
xml = new XML(e.target.data);
var il:XMLList = xml.channel.item;
for(var i:uint=0; i<il.length(); i++)
{
t.setStyle("styleSheet", style);
t.htmlText = "<a href='"+il.link.text()[0]+"' class='heading'>"+il.title.text()[0]+"</a>"+"\<br />"+il.description.text()[0]+"\<br/><br/>"+"<a href='"+il.link.text()[1]+"' class='heading'>"+il.title.text()[1]+"</a>"+"\<br />"+il.description.text()[1]+"\<br /><br />"+"<a href='"+il.link.text()[2]+"' class='heading'>"+il.title.text()[2]+"</a>"+"\<br />"+il.description.text()[2];
}
}
t stands for text area.
hope your replies get soon..
Paul
The HR tag isn't supported in Actionscript. My suggestion would be to just use a loop to parse through all of your XML elements, and add the HR visuals as movieclips from your library after every entry... perhaps like so (btw, this is all pseudo-code - I haven't tested it):
Also, here's an FLA saved to CS4 if you're still stuck: http://clearmpls.com/temp/xml-list.zip