|Tweening is a fundamental of FlashR animation. If you break down a Flash animation into its individual parts, you will have a starting point, an ending point and several in-between points. The number of in-between points that you will have depends on the type of animation you are creating. |
Most Flash designers use one of two methods to create a Flash animation. The first method that you learn to use is Timeline tweening, where you use the Flash Timeline to control the animation. This is an easy way to create a simple tween. But this tutorial is about the second, and more flexible, ActionScript method. You will use this method when you need a little more control over the tween than you have with the Timeline. The nice thing is that most of the ActionScript code is built-in. Basically, you only need to tell Flash where to start, where to end and how long you want the Tween to last. Let's take a look at how to setup your Flash project to use ActionScript and the Tween class to create a Tween.
Let's look at an example that will move a simple rectangle from one point on the stage to another. Start a new ActionScript 3 project in Flash CS3.
Join us in the Flash forum.