AS3 webcam Motion Tracking

Actionscript 3.0 | 06 Jun 2008 | 38 comments

Actionscript 3.0 | 06 Jun 2008 | 38 comments

AS3 webcam Motion Tracking

Tracking an object’s movement

AS3 webcam Motion Tracking

Update

Ok, you can now grab the MotionTracker source code. Version 2 eventually will include the other methods for detecting and tracking motion which I mentioned. For now I have just included code for the technique used in the demo. // Read More

2D Cellular Automata

Actionscript 3.0 | 06 May 2008 | 2 comments

Actionscript 3.0 | 06 May 2008 | 2 comments

2D Cellular Automata

Actionscript 3 Game of Life

2D Cellular Automata

Inspired by Conway’s game of life (to which I was a late comer but now a devotee!), I decided to program a 2 dimensional Cellular Automaton in Actionscript 3.

I had been reading up on complexity theory for a recent project and the Cellular Automata just kept on rearing its head. Of course it displays the fundamental qualities of complexity; starting with an object following a set of simple rules and then creating multiple instances to form complex and unpredictable patterns. // Read More

Alphabet Particles AS3

Actionscript 3.0 | 29 Apr 2008 | 3 comments

Actionscript 3.0 | 29 Apr 2008 | 3 comments

Alphabet Particles AS3

Psychedelic Sesame Street

Alphabet Particles AS3

Download Source Code (AS3)

Ok, so there’s not much to say here! // Read More

Playing With APEs

Actionscript 3.0 | 24 Nov 2007 | 2 comments

Actionscript 3.0 | 24 Nov 2007 | 2 comments

Playing With APEs

Actionscript 3 physics engine

Playing With APEs

Download demo source files

Look at them go! Stupid primates.
Click ‘Spawn Platforms’ for a new layout, or play with the Platform and APE count steppers!

I finally found some time to play around with the AS3 physics engine, APE; something I have been meaning to do for a while now. // Read More

Flash on the Beach 07

flash | 09 Nov 2007 | no comments

flash | 09 Nov 2007 | no comments

Flash on the Beach 07

Four days of Flash by the sea

Flash on the Beach 07

I just got back from Flash on the Beach 07; A Flash conference in Brighton. It would be an impossible task so sum up what a fantastic 3 days it turned out to be, suffice to say the speaker line-up was near perfect, and I left feeling inspired to play more, create more and dig out some of those old ideas from the back of my hard drive and see where they take me. // Read More

AS3 Group94 Menu

Actionscript 3.0 | 24 Oct 2007 | 10 comments

Actionscript 3.0 | Interfaces | 24 Oct 2007 | 10 comments

AS3 Group94 Menu

Group94 inspired scrolling menu - AS3 update

AS3 Group94 Menu

Download source (AS3)

Welcome to the latest instalment of the Group 94 style scrolling menu tutorial! (With downloadable source files of course) // Read More

G94 Circular Menu

Interfaces | 07 Aug 2007 | 10 comments

Interfaces | prototypes | 07 Aug 2007 | 10 comments

G94 Circular Menu

Group94 Inspired Circular scrolling menu

G94 Circular Menu

Download Group94 style scrolling menu

I built this circular version of the group94 style scrolling menu for a flash website awards showcase I was asked to work on. The original design was based around circles, but we ended up redesigning as parts of the interface (not this menu!) were too processor intensive.

Ok, so part two of my tribute to Group 94’s menu system! This is again inspired by the Group 94 (at least they are most famous for it) shuffle menu in Flash, which pushes items off the top and bottom as the menu shuffles into place. // Read More

SWF Address

flash | 18 Jul 2007 | 3 comments

flash | 18 Jul 2007 | 3 comments

SWF Address

Deep linking in Flash

I have just been checking out Asual’s SWFAddress.

If you haven’t come across it yet, SWF Address is a tool for deep linking in Flash. It is a JavaScript based code which will set hash (anchor) link path from your Flash content. Not only does this mean users can now use their back buttons, but it also means permalinks can be created to content deep inside the Flash movie. For example http://www.yoursite.com/#/projects/project-name/ // Read More

AS2 Array count values

prototypes | 20 Jun 2007 | no comments

prototypes | 20 Jun 2007 | no comments

AS2 Array count values

Actionscript port of array_count_values

In PHP there is a very useful function called array_count_values. It sorts an array by returning a 2 dimensional array consisting of non duplicate elements as keys, and values determined by how many times these elements appeared in the original array.

So, for example, an array [“red”,”green”,”blue”,”red”] would be converted into [“red” => 2, “green” =>1, “blue” => 1]. Duplicate elements are removed and the new array indicates how many times each, now unique value occurred in the array.

Unfortunately, Actionscript has no such function built in, so I made one. It is a modification of Senocular’s array.unique() prototype (which you can find in his Actionscript library), however rather than simply returning a unique array, it returns the 2 dimensional array mentioned above. // Read More

AS3 music visualisation

Actionscript 3.0 | 14 May 2007 | 30 comments

Actionscript 3.0 | 14 May 2007 | 30 comments

AS3 music visualisation

Actionscript 3 computeSpectrum

AS3 music visualisation

A decent computer and lots of volume is recommended.

Well, due to the fear of slipping behind, I felt I better start learning the new Flash language, Actionscript 3, and at first glance, one of the coolest features is definitely the SoundMixer.computeSpectrum function. // Read More