Book Review: Learning Actionscript 3.0

February 2nd, 2010

Learning Actionscript 3.0‘ by Rich Shupe and Zevan Rosser bills itself as ‘A Begginer’s Guide’ to Actionscript 3 for non-traditional programmers. With this in mind, I picked it up a couple of years ago when committing to making the transition from AS2 to AS3.

The book is made up of several sections, each one containing a number of chapters dedicated to exploring the basics of a particular aspect of AS3. The topics covered are wide ranging, from language and syntax to sound and video, external assets, and even touching on OOP – a welcome addition that I wasn’t expecting in such a begginer’s book. Read the rest of this entry »

Passing Arguments Through a Listener Part 4 – Custom Events

January 25th, 2010

(This is part 4 of a series of posts on ways to pass arguments to a function through event listeners. For part one, see here, for part two, see here, and for part three, see here.)

Today sees the last chapter of our quest to pass information to a function through a listener. For this final method we’re going to be looking at creating our own custom events, and  how they can be used to store and retrieve information.
Read the rest of this entry »

Flickr Search Flash App

July 25th, 2009

Recently I’ve been looking at the APIs of a couple of websites, Twitter and Flickr. This post will be focusing on flickr, and the little app that I created using Actionscript 3 and the Flickr API.

The Flickr API really makes it easy to access all of the images on the site, and all of the information that it stores about them, using a series of http requests for everything from searching to obtaining geotag information. There are a number of API kits available, but the base Flickr API is so simple that on a small project such as this one it was just as easy to use as it would have been to learn to use one of the kits.

Read the rest of this entry »

Work in Progress – AS3 Settler’s of Catan Board Generator

July 21st, 2009

Every once in a while, a few friends come round to the flat to play board games, the standard game being Settler’s of Catan. Most of us being geeks, at some point in the evening someone usually mentions an idea for a way to integrate some sort of technology into the proceedings, such as a glass topped board game table with LED strips for roads. This is what prompted the following project.

As an exercise in OOP in AS3, I decided to try and recreate the game in flash. This is the first step, the random board generation. Read the rest of this entry »

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 »