MACROMEDIA FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH Manual page 487

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

5.
In the Convert to Symbol dialog box, click the center of the 3 x 3 grid to set the registration
point to the center of the bitmap and click OK.
6.
Select the new movie clip on the Stage and use the Property inspector to give it an instance
name of img2_mc.
7.
Select Frame 1 of the main Timeline and add the following ActionScript to the
existing code:
mx.transitions.TransitionManager.start(img2_mc,
{type:mx.transitions.Zoom, direction:mx.transitions.Transition.IN,
duration:1, easing:mx.transitions.easing.Bounce.easeOut});
8.
Select Control > Test Movie to test the animation.
The second movie clip grows from the center of the symbol instead of the corner.
Some transitions are sensitive to where you locate the registration point. Changing
the registration point can have a dramatic effect on how the animation looks in a
SWF file. For example, if the registration point is in the upper-left corner (default)
when you use the Zoom transition, the transition begins from that location.
For information on each method and property of the Tween class, see Chapter 51, "Tween
class" in the Components Language Reference. For information on each method and property of
the TransitionManager class, see Chapter 48, "TransitionManager class" in the Components
Language Reference.
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.
In Windows, browse to boot drive\Program Files\Macromedia\Flash 8\Samples and
Tutorials\Samples\ActionScript\Tween ProgressBar.
On the Macintosh, browse to Macintosh HD/Applications/Macromedia Flash 8/Samples
and Tutorials/Samples/ActionScript/Tween ProgressBar.
About the Tween and TransitionManager classes
487

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents