Description

There are two basic ways of animating objects programmatically in AS3: using the TIMER class or using the ENTER_FRAME event. In this tutorial we demonstrate the latter method. We animate a tossed, bouncing ball.

Click on the screen shot below to open one of the applets of this tutorial in the new window:

Download

Download all source files, including a pdf guide, corresponding to this tutorial in the following compressed folder.

The pdf guide in the zip file explains step-by-step how to animate a bouncing ball programmatically with the ENTER_FRAME event. The two fla files show to ways of creating the ball itself: programmatically and at authoring time.

Back to Intermediate Tutorials              Back to Flash and Math Home

The site www.flashandmath.com is maintained by Doug Ensley (doug@flashandmath.com) and Barbara Kaskosz (barbara@flashandmath.com).
It has been developed with partial funding from the National Science Foundation and the Mathematical Association of America.