Transition classes
We’ll start by looking at the Transition classes. These classes allow you to add ten different effects to your movies. Each effect has settings that you can adjust. You can also combine the transitions. The effects that you can use are:
- Blinds
- Fade
- Fly
- Iris
- Photo
- Pixel Dissolve
- Rotate
- Squeeze
- Wipe
- Zoom
In most cases, the names of each effect give you a description of the transition that they’ll create. I’ll work through each transition and to show you how you can customise the effect. You’ll be able to see sample code in the completed Flash movies. Just remember to uncomment the lines that you want to test.
You can see the Transition classes in your Flash MX 2003 First Run classes folder. On my computer, the location of the folder is C:\Program Files\Macromedia\Flash MX 2004\en\First Run\Classes\mx\transitions. It includes a folder called Easing. This contains Easing classes.
Transitions use the Easing classes to control the way each transition starts and ends. You can apply easing using the directions easeIn, easeOut or easeInOut. There is also an easing direction called none. The types of easing you can apply to transitions are:
- Back
- Bounce
- Elastic