The Text control in Flex allows you to display non-editable, multi-line text with basic HTML markup.

But there’s a problem when it comes to anchor tags.

If you set the selectable property in the Text control to false, as I often do, the links in your HTML text will no longer work.

Believe it or not, this is by design!

From the Adobe® Flex® 3 Language Reference (emphasis added):

selectable property
selectable:Boolean [read-write]

Specifies whether the text can be selected. Making the text selectable lets you copy text from the control.

When a link event is specified in the Label control, the selectable property must be set to true to execute the link event.

The default value is false;.

So it seems that if you want the links in your Text control to remain clickable, the HTML text must be selectable.

(Not the biggest deal of course, but it would have been nice to know before I spent an hour pouring over my code at 1am trying to figure out why my links weren’t working) 🙂