UNDERLINE THE TEXT in MX?

I know this may be sound stupid, but how do you underline the text. It seems like there is no such option there…or is there? and where?

Looks like you’re going to have to script it, HTI.

change ur text field to dynamic text and give it an instance name and use below code:

urTextFormat = new TextFormat();
urTextFormat.underline = true;
instance_name.setTextFormat(urTextFormat);

go to help in flash mx for more detail on TextFormat, i also just learnt from there.

that will underline ALL the text though.

The best way is to make a dynamic textbox and make it HTML enabled so you can use HTML underline tags on the word you want.

yeah, that’s right!! i learnt another new things!!
thanx for ur advice!!

No problem, but beware, HTML enabled text only works if the text is dynamically loaded from an external text file or inputted through Actionscript.

this.createTextField("myText",-1,0,0,300,20);
myText.html=true;
myHTML="Hey Lost, <u>what's on your mind?</u>";
myText.htmlText=myHTML;

Yeah, perhaps I should have added that part:)

Sorry.