Create the tween of the alpha value for the shadow
- In the Timeline, select Frame 61 of the layer called Shadow.
- Select Insert > Timeline > Keyframe.
- Drag the playhead to Frame 1.
- Click outside the Stage to deselect all selections.
- Click the shadow movie clip on the Stage.
- In the Property inspector, select Alpha from the Color menu.
- Drag the Alpha slider down until the value is 25%. You have now set the alpha value to 25% in Frame 1 and 100% in Frame 61.
Setting the alpha value of the Shadow movie clip on the Stage to 25%
- In the Timeline, click the layer named Ball to select the frames in that layer.
- In the Property inspector, click Edit next to the Ease slider.
- In the Custom Ease In / Ease Out dialog box, press Control-C (Windows) or Command-C (Macintosh) to copy the easing curve you applied to the ball tween.
- Click Cancel to dismiss the dialog box.
- In the Timeline, click the layer named Shadow to select all the frames in that layer.
- In the Property inspector, select Motion from the Tween menu.
- Click Edit next to the Ease slider.
- In the Custom Ease In / Ease Out dialog box, press Control+V (Windows) or Command+V (Macintosh) to paste the easing curve from the ball tween.
- Click Play in the dialog box to preview the animation on the Stage.
By applying the same curve to the Shadow tween, you have made the transparency of the shadow animate according to the proximity of the ball. This way the shadow appears to become darker as the ball approaches the surface and lighter as the ball bounces away from the surface.
- Click OK to close the dialog box.
- Select File > Save to save your FLA file.
Test the application
At any point during authoring, you can test how your application plays as a SWF file. Because this tutorial contains no animation or interactivity, the file will look the same in test mode as it does in authoring mode.
- Select File > Save to save your FLA file.
- Select Control > Test Movie.
- When you finish viewing the application, close the SWF file by clicking the close box in the test window.
You have now completed a successful complex animation using the custom easing controls in Flash. By using these controls while tweening the various properties of objects on the Stage, you can create a wide range of complex motions and interesting visual effects.