Recipe 11.5. Animating Color ChangesProblemYou want to animate changes in a movie clip instance's tint over time. SolutionCreate two instances of the movie clip on two keyframes on the same layer. Modify the color settings in the first one to reflect how you want the movie clip to appear when the color animation begins. Modify the color settings in the second one to reflect how you want the movie clip to appear when the color animation ends. Create a motion tween between the two keyframes. DiscussionAs with just about any other properties of a movie clip, you can animate changes in color/tint over time. You can achieve a smooth gradation over time from one color/ tint to another by using a motion tween:
The result of this process is that the movie clip instance will gradually shift from the initial tint to the final tint. And, of course, you can combine this kind of tween animation with any other tweenable properties. For example, you can also change the position of the movie clip instance at the same time as the color is changing. Although it is possible to programmatically tween color changes, it is a complex process that is not discussed in this book. |
Tripod >> 3pod Tips & Learning and manuals for educations