ActionScript 3.0 Particle Systems #4: Bubbles

Yet more ActionScript 3.0 again! This time it’s a kind of 2D particle fountain. New in this iteration is code so we can pause and resume the animation instead of just start/stopping it, and each bubble’s colour gets subtley modified via colorTransforms.

Last one for the day methinks – I’m knackered. Happy, but knackered :)

As usual, source code and flash files after the jump for those of a particularly masochistic bent…

Flash File (ActionScript 3.0) Code:

ActionScript 3.0 Bubble Class Code:

In accordance with the prophesy, Adobe Flash CS4 files for the above can be found: here.

Leave a Reply

Your email address will not be published.