Ball Collisions with the Macromedia Flash Drawing API

July 25th, 2005

I used nothing but the macromedia drawing api to create a little flash movie that randomly creates balls, and sends them in a random direction. The balls have elastic collisions with each other and with walls. It is not perfect and needs some major tweaking. Here is the source code. Just copy it and paste into the first frame of a flash movie’s actionscript.


Leave a Reply