The FindURL class (v1.0)

posted by The Hippy in Actionscript 3, Classes, Downloads

Please note: This class has been updated. Please click here to see the latest changes.

Whilst I was playing around with the Twitter API I was beginning to get wound up by the fact that the XML feed from Twitter only sends out text versions of tweets and not HTML versions. For example, lets say a tweet says “Check out this cool link: http://www.plagro.com”, the xml feed from twitter would send out:

Check out this cool link: http://www.plagro.com"

as oppose to the html version containing the “a” link tag:

Check out this cool link: <a href="http://www.plagro.com">http://www.plagro.com</a>

So after trawling the forums looking for alternative feeds and/or HTML convertors, I came to the conclusion that it would be easier to write a small class that simply finds links within blocks of text and adds in the html tags so it can be displayed as HTML text. The result is the FindURL class.

More

Post to Twitter Post to Facebook Post to StumbleUpon Post to Digg