Boids AS3 Demo

I’ve uploaded the Boid source code. Sorry for the delay. I’ve also included some basic examples of how you can create nice behaviors using the Boid class. If you set Main.as as your document class then you’ll see that within that you can specify the demo to run when you compile.

The basic demos included are:

  • Chase – Boids chase each other
  • Flock – Boids flock together with some wander
  • Graphics – How to use custom graphics with a Boid instance
  • Seek – Boids seek the mouse position
  • Wander – You guessed it, they wander

I’ve commented all of the methods and properties and there is also documentation (open index.html in the docs folder) to get you started. Before you mention it, yes, there is some redundant code ;) (such as the constrainToRect method which doesn’t really work) but I need to do some optimisations anyway so I just left it as is for now, rough and ready.

Download: AS3 Boid Class & Demos Read : Flipping you the Boid »

Posted on 05 May 2009
37 Comments
8 Trackbacks

Bandcamp Music Visualisations

Just a quick (and slightly belated) announcement.

The distinguished Bandcamp has recently been regaled with another round of audio-visual snacks. I’ve had a lot of fun working on them, and there will be even more in the not too distant future.

The whole Bandcamp site in fact is bursting with more and more tasty new features which you should check out. In terms of my little contribution on the music visualistions front, there are currently four new full fat flavors to feast on… Read : More Music Visualisations »

Posted on 17 Mar 2009
10 Comments
0 Trackbacks

Shuffle Grid Demo

Drag & Drop the images to shuffle them around… Read : AS3 Shuffle Grid Class »

Posted on 04 Mar 2009
41 Comments
6 Trackbacks

I’ve recently started weaning myself off of Flashdevelop and onto FDT, mainly because it’s cross platform but also because it means I can use the same IDE for coding and compiling Actionscript and Java.

The other clinching factor was it’s plugins, notably Subversive for SVN browsing and team collaboration goodness.

This evening though, I tried checking out a Google code project and got the following error: Read : Subversive & Google Code »

Posted on 06 Feb 2009
Posted in
7 Comments
0 Trackbacks
“Easily create two sided 3D DisplayObjects and flip card effects using Flash Player 10 and the new 3D API …”

PaperSprite Demo

I’ve made a couple of small improvements to the PaperSprite class:

  1. The visible face of the plane is updated automatically only when required. This saves on processing load and also means you can just set up the PaperSprite and not have to worry about anything else, just tween the crap out of all its properties and it won’t mind one bit. (Thanks to Jesse for the pointers re. using stage.invalidate for this process)
  2. The back face is now automatically flipped horizontally, so text and graphics are no longer mirrored and will display correctly
  3. I’ve changed the logic which sets the dynamic registration point for the pivot. This should now correctly line up the front and back faces of the 3D plane, regardless of where their individual registration points are.

Also, some people have asked how to use it, so here is a really quick example to get you up and running with PaperSprite if you are not familiar with using classes and are using the Flash IDE to compile your movie:

  1. First, download the PaperSprite class and put the soulwire folder in the same directory as your FLA or source code.
  2. Then paste this code into the main timeline of your FLA:

Read : Double Sided 3D Plane in FP10 »

Posted on 30 Dec 2008
79 Comments
4 Trackbacks

About me

Soulwire is a weblog by Justin Windle; a Creative Technologist at Lean Mean Fighting Machine, London – I often Tweet, Flik, Link and Vim.

Twitter <follow>

March 12th 2010 - 11:17am

Live - Bahrain GP practice http://bit.ly/dBcV8m #F1