Category Archives: Tip

addFrameScript and currentLabels

3 Comments 9 February 2011

Today I’ve been setting up a very simple project – an intro animation and then some text/links fade in. The designers are making the animation and I’m just writing some basic code for the links etc (it’s CMS driven, many … Continue reading

Posted in ActionScript, Tip

Using MouseEvent.DOUBLE_CLICK in AS3

6 Comments 30 December 2010

Surprisingly I have never had a need to use the double click event in ActionScript 3.0 until this morning. I presumed it would work exactly like the single click event so at first I just used this: item.addEventListener(MouseEvent.DOUBLE_CLICK, listener); But … Continue reading

Posted in ActionScript, Tip, Uncategorized

Flash Monkey is back!

1 Comment 30 December 2010

I’m back! After over 7 months of travelling from Mexico to Argentina (via Belize, Guatemala, Honduras, Nicaragua, Costa Rica, Panama, Colombia, Brazil, Peru and Bolivia), and a few weeks in Sydney and Thailand on the way home I am now … Continue reading

Posted in Employment, Experiment, Physics, Site, Tip

Using Value Objects in Flash

5 Comments 18 February 2010

From time to time I get emails from people asking for help or advice and last week I was discussing with Gabe about how VOs might help him organize his code. I think a large amount of the visits to … Continue reading

Posted in ActionScript, Tip

AS3 Postcode Validation

1 Comment 2 September 2009

After a quick search on Google for an Actionscript Postcode validator nothing came up, so I thought I’d write one and post it here: var postcode:String = "N5 1BU"; var postcodeExpression:RegExp = /^(GIR 0AA|[A-PR-UWYZ]([0-9]{1,2}|([A-HK-Y][0-9]|[A-HK-Y][0-9]([0-9]|[ABEHMNPRV-Y]))|[0-9][A-HJKS-UW]) [0-9][ABD-HJLNP-UW-Z]{2})$/; var isValid:Boolean = postcodeExpression.test(postcode); Hope … Continue reading

Posted in ActionScript, Tip
← Older posts