About the Tween and TransitionManager classes

When you install Flash Basic 8 or Flash Professional 8, you also install two powerful classes: the Tween and TransitionManager classes. This section describes how to use these classes with movie clips and Macromedia V2 components (included with Flash MX 2004 and Flash 8) to add animation easily to your SWF files.

If you create a slide presentation or form application with Flash Professional 8 (ActionScript 2.0 only), you can select behaviors that add different kinds of transitions between slides, which is similar to when you create a PowerPoint presentation. You add this functionality into a screen application by using the Tween and TransitionManager classes, which generate ActionScript that animates the screens depending on the behavior that you choose.

You can also use the Tween and TransitionManager classes outside of a screen-based document, in either Flash Basic 8 or Flash Professional 8. For example, you can use the classes with the component set of version 2 of the Macromedia Component Architecture, or with movie clips. If you want to change the way a ComboBox component animates, you can use the TransitionManager class to add some easing when the menu opens. Easing refers to gradual acceleration or deceleration during an animation, which helps your animations appear more realistic. You can also use the Tween and TransitionManager classes, instead of creating motion tweens on the timeline or writing custom code, to create your own animated menu system.

NOTE

 

The Tween and TransitionManager classes are available only in ActionScript 2.0, but these classes are available in both Flash Basic 8 and Flash Professional 8.

For information on each method and property of the Tween class, see Tween class in the Components Language Reference. For information on each method and property of the TransitionManager class, see TransitionManager class in the Components Language Reference. For information on working with packages, see Working with filter packages.

You can find a sample source file that uses these classes to add scripted animation. Find tweenProgress.fla in the Samples folder on your hard disk.

For more information on the Tween and TransitionManager classes, see the following topics:


Version 8

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/8/main/00001497.html