HI All,
I want to know how to style an anchor tag(eg: need to chnage color blue and I want to make it bold) in flash.
I created a flash widget that for rss feeds and Im not sure about how to add styles in it like css we using in dreamweaver.
Lets take a look at the script below, it is AS3..
what I want is..
1, I need to make that a tag should be looking bold and paleblue color.
2, Need to add a grey border after description ends.
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++)
{
ta.htmlText="<a href='"+il.link.text()[0]+"'>"+il.title.text()[0]+"</a>"+"\<br />"+il.description.text()[0]+"\<br />"+"\<br /><hr />"+"<a href='"+il.link.text()[1]+"'>"+il.title.text()[1]+"</a>"+"\<br />"+il.description.text()[1]+"\<br />"+"\<br /><hr />"+"<a href='"+il.link.text()[2]+"'>"+il.title.text()[2]+"</a>"+"\<br />"+il.description.text()[2];
addChild(ta);
}
}
Looking for your REPLIES ..
Thanks in Advance!
Paul
You can create a Stylesheet and apply it to your textfield like so:
Flash only supports a subset of CSS rules for textfields, and this doesn't include borders so you'll probably need to draw your bottom border using the graphics API.