Square Rotation with Friction

By Jonathan on September 22, 2011

Here’s another little snippet of animation with AS3, this one is a square that starts rotating by itself, then with a click on the stage you can see it stop gradually, as if friction is being applied to it. Most like rotating a wheel of fortune wheel. Is an example practice of dynamic animation with Acceleration and friction. You can see a live example here.

Here’s the code:

Posted in Flash | Leave a Response

Leave a Reply