AS3 Particle System/Color Transforming Flash Game

July 20th, 2009

Recently I was going back through some past projects and experiments, and I came across a particle system I had played with when making the jump from AS2 to AS3.  I ended up digging into the code and fiddling with it – a bit here, a bit there – until some kind of weird game/toy emerged.

Basically, your goal is to match the colour of the particles emerging from your mouse to the colour of the background in the center. You do this by adding or subtracting red, green, and blue from the colour of the particles, mousing over the colours in the left column to add them, and in the right column to subtract them. When one of the individual colours gets close to being the right value, the respective blobs will start to pulse. Match the colour to gain a point, and the target colour will change. You have until the target colour disappears to match as many as you can. Read the rest of this entry »

Actionscript 3 Cutting off your Tweens? Here’s why…

July 19th, 2009

One flash project that I’ve been working on recently is a dynamic image carousel for a website header. All was going well – the carousel was loading external images, spinning correctly, and could be interacted with via the mouse pointer. The header called for the carousel to load off screen and move up into view once the load was complete. No problem, a simple tween should do it…

The Problem

At first that was fine, the carousel loaded and tweened as expected, but after making a few changes to other parts of the header and testing a few more times, the tween stopped short leaving the carousel half visible and half off screen. The irritating thing was that it was seemingly random. Sometimes it would make it all the way, sometimes it would get part way and stop, and occasionally it would appear not to move at all.

Read the rest of this entry »

Conway’s Game of Life – Flash/AS3

July 10th, 2009

Hello! You’ve found the EddyB.co.uk blog! This is where I’ll be posting works in progress, design experiments, flash doohickeys and other stuff I think you might find interesting. Let’s get off to an ambitious start by creating some life…

I’ve had some experience in the past with creating and experimenting with cellular simulations, so I decided to recreate John Conway’s Game of Life using Flash CS4 and Actionscript 3. I created a couple of classes for this project -a cell class specifically created for this simulation (and only this simulation – it’s very specifically customised), and a custom button class for general use in other projects.

Read the rest of this entry »