TweetParser updated to include usernames and hashtags

December 21st, 2009

Well the title says it all, the tweet parser I created and mentioned in an earlier post has been updated to include @usernames and also #hashtags. The parser will format these tags into html formatted links ready to be included in your htmlText for your AS3 text fields.

Updated source files here

Categories: Actionscript 3.0 | Tags: , , | No Comments

Messing about with the AS3DMod library

December 10th, 2009

I don’t know why but I have had AS3DMod in my collection of libraries for some time now, but have never gotten around to having a play with it….what fun I have been missing out on!.
It is a nice lightweight library that allows you to modify the vertex geometry of primitives in many of the most popular AS3 3D engines. It is very simple to use and applying a modifier is as simple as creating a modifier stack – targeting which ever 3D library you want which AS3Dmod supports, creating an instance of the modifier wanted and adding it to the stack. You can animate the variables of the modifer with your favourite tweening engine and come up with some nice effects.


The Flash plugin is required to view this object.




In the example here, I have used the four modifiers I think work best with a plane primitive and letting the tweens interact with each other if they have tweened in. I have also used Keith Peters minimalComps library for the radio buttons due to their simplicity and very low footprint, which are great for testing apps. You will also need to have the tweenLite library for this example and of course for the 3D library I have used Papervision.

If you want to have a look you can get the source here.

If I get a bit more time later I will have more of a play and see if I can produce something more interesting!

Categories: Actionscript 3.0, Papervision | Tags: , , | 4 Comments

Tweet parser to format urls in your text fields

November 30th, 2009

A while back I created a tutorial on Active.tutsplus.com on how to create a twitter widget for your website. This tutorial has resulted in a lot of emails and great comments from people who have viewed it.....mostly good thankfully and a lot for help and advice on how to manipualte tweets etc. A few recently were about formatting the links in tweets to be clickable in a normal text field in flash. This is incredibally simple if you know how and so I have created a simple class which would parse your tweet, format the url into a 'href' tag and assign your chosen colour to the link. Then once added to a text field as htmlText would function the same as a clickable link on any web page.

The class is available here and all you need to do is include it in your source files and as the method is a public static function you do not need to instantiate it you just make reference to it like so:

Actionscript:
  1. myTwitterWidgetTextField.htmlText = TwitParser.parseTwit(pulledInTweet, 0x00FF00);

The two parameters needed are the text to be parsed and a hex value for the color of the link text...and thats it!

Happy tweeting!

Categories: Actionscript 3.0 | Tags: , | 1 Comment