User Guide
Applying easing methods to components 1315
These six easing calculation classes each have three easing methods, which indicate at what
part of the animation to apply the easing effect. In addition, the None easing class has a fourth
easing method: easeNone. The easing methods are described in the following table:
Applying easing methods to components
Another use for the various easing methods is to apply them on version 2 of the Macromedia
Component Architecture. You can apply the easing methods only to the following version 2
components: Accordion, ComboBox, DataGrid, List, Menu, and Tree. Each component uses
the easing methods to allow different customizations. For example, the Accordion,
ComboBox, and Tree components let you select an easing class to use for their respective open
and close animations. In contrast, the Menu component lets you define only the number of
milliseconds that the animation lasts.
Applying easing methods to an Accordion
component
This section describes how to add an Accordion component to a Flash document, add a few
child slides, and change the default easing method and duration. If you decide to use this code
in a project, reduce the value of the
openDuration property to avoid annoying users
with animations that are too slow when they open and close the Accordion component’s
child panes.
To apply a different easing method to the Accordion component:
1. Create a new Flash document and save it as accordion.fla.
2. Drag a copy of the Accordion component onto the Stage.
3. Open the Property inspector, and type my_acc into the Instance Name text box.
4. Insert a new layer above Layer 1, and name it actions.
Method Description
easeIn Provides the easing effect at the beginning of the transition.
easeOut Provides the easing effect at the end of the transition.
easeInOut Provides the easing effect at the beginning and end of the transition.
easeNone Indicates no easing calculation is to be used. Provided only in the None
easing class.