Friday, April 23, 2010

Text component with active urls links.

Working on Twits Around Me project I faced a problem, how to make urls text like as an active links. Even using htmlText property, url in the text doesn't appear like link. So I have created my component called HyperLinkText, here is examples how to use it:


I hope you will find it useful and save your time in the future. Here is HyperLinkText.as on my cloud.

1 comment:

  1. Nice!

    I see, that you still on Flex 3, it is time to try new FTE and Flex 4 Text component ;)

    BTW, you can also take advantage of Flash basic support for CSS anchor pseudo-classes, like I did here:

    http://jabbypanda.com/labs/hyperLink/htmlText.html

    ps http://gist.github.com/ is a cool way to exchange source files online!

    ReplyDelete