Chapter 12. Animation

FLASH AND ANIMATION are almost synonymous. Although ActionScript gives Flash abilities that go far beyond simple animation, animators are still a key part of the audience for Flash. The software is used to create commercials, videos, and even television shows—such as Cartoon Network’s Emmy-Award-winning Foster’s Home for Imaginary Friends. AS2 brought animation to a new level with the undocumented Tween object, and things have only gotten better in AS3. This chapter covers the differences when creating Tween object instances and handling tween events in AS2 and AS3, and introduces the improvements in AS3.


Scaling, fading in and out, rotating, or any simple animation can be accomplished with the Tween object. The functionality ...

Get The ActionScript™ 3.0 Migration Guide: Making the Move from ActionScript 2.0 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.