views:

247

answers:

2

...regardless of font size.

Its an mx:Text object. (The Text object is actually being used as a mask so don't know if that's the problem.) If underline is set with the <u> tag in Text.htmlText, or Text.textField.setTextFormat, the underline thickness is always just one pixel which is not acceptable. (There are other problems with <u> so I'm limited to using setTextFormat currently.)

Can the thickness of an underline be set through CSS? (textField.styleSheet, etc.)

I may have another problem as I already use setTextFormat extensively, and the documentation says you can't use textField.setTextFormat if you use textField.setStyleSheet.

I primarily need the underline to simulate correctly the look for an anchor tag.

A: 

its not even possible to do in html (you need to use border-bottom). i don't think this is possible.

antpaw
thanks............
Mark
A: 

Not possible with CSS or TextFormat. A possible workaround would be using the textfield metrics (probably through getCharBoundaries()) to manually draw a line under the desired text. It can get quite messy for multiline text though.

Cay
I probably will go this route if you're sure it can't be done through CSS (through border-bottom, for example as described above)
Mark