views:

15

answers:

1

In flex, how can I highlight text/label? I have text and a small image that I want to highlight.

+2  A: 

Easiest way is to add a glow filter around the UIComponents you want highlight.

Glow Filter

If you want to highlight part of the text, not so simple, you'll need to work it out in HTML and set the htmlText of the Label.

Gregor Kiddie
I tried <mx:htmlText> inside <mx:Text> but I can apply <font> tag, <b> etc but I cannot use bgcolor or background image. I was thinking about using bgcolor in background togive a solid highlight.
Here's what you can do with htmlTexthttp://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/flash/text/TextField.html#htmlTextYou might want to think about swapping styles for the label and the image to one with a different background colour.
Gregor Kiddie