Home > Flex, programming > Executing HTML links in Flex

Executing HTML links in Flex

October 27th, 2008 admin Leave a comment Go to comments

In the project I’m currently working on, I found that HTML links in textfields weren’t properly executing, although the text seemed to be rendered properly. My mouse cursor even changed to a hand cursor on rollover of the link within the text, but I could only actually ópen the link through the context menu that popped up after a control-click (or right click for the PC user).
After some searching, I found the simple answer to my problem on the Flex Examples blog: in order for the HTML link to be properly executed, the ’selectable’ property of the containing TextField must be set to ‘true’! If the text is not selectable, your HTML link won’t automatically be opened on click. Way to go Adobe!

Categories: Flex, programming Tags:
  1. Daniel Bolton
    October 1st, 2009 at 11:05 | #1

    Thanks for this! I was scratching my head for a while, good old Adobe logic.

  1. No trackbacks yet.