Rolling Along

Playing around with shy objects rolling along the bottom of the screen.
In making this, I discovered that an object's x-y axes change along with its rotation. While this could facilitate certain collision-detection operations, it made a mess of the mouse coordinates during rolling. The simple solution was to create a sprite inside of the ball in which all graphics are drawn and rotations are handled. That allowed the outer sprite/movieclip to behave predictably. I also added a simple utility class to grab a random color from a loaded image; it's not quite as simple to do as in processing, but it works fine. Next up, I'll try to make an egg wobble along (any suggestions on how to handle that would be appreciated).

Download source.