Yes, boids, they are used for simulating flocks of birds or movement of groups.
Here is my reference:http://www.kfish.org/boids/pseudocode.html
I basically used the same format as the ref. I think I made a math typo in it somewhere, it's a bit unstable in spots.http://dl.dropbox.com/u/5426011/examples15/boid.capx
This is a rewrite from scratch in a typical event fashion. Only eight events and I seem to have fixed the math so its a bit more stable.http://dl.dropbox.com/u/5426011/examples15/boids2.capx
This rewrite is based on the idea that it would be cool if vector math could be done directly and not have to do the formulas with the components of the vectors. The result was a lot of the math was hidden in a bunch of reusable vector functions. All the function.calls in the expression kind of counteracted the simplifying of expressions I was going for. Not to mention that it's a bit more tedious writing expressions with my system because errors are just ignored. http://dl.dropbox.com/u/5426011/examples15/vector.capx