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

Learning actionscript 2.0 in flash
Table of Contents

Advertisement

The second section of ActionScript creates a listener object for the MovieClipLoader class
instance, which you create in the third section of code. When the target movie clip loads
into the MovieClipLoader instance, the
of code, which calls both the Tween class and the TransitionManager class. This event
handler fades in the target movie clip because you modify the
Tween class, and flies the target movie clip along the x-axis.
The third section of ActionScript code creates a MovieClipLoader instance and applies the
listener object that you created earlier (so the target movie clip loader instance can listen
for the
onLoadInit
you create dynamically by calling the
3.
Save your document and select Control > Test Movie to view the animation in the
test environment.
After the external JPEG image finishes downloading from the server, the image fades in
gradually and animates from right to left across the Stage.
For information on using the Tween class, see
For information on each method and property of the Tween class, see
class"
in the Components Language Reference. For information on each method and property of
the TransitionManager class, see
Language Reference.
You can find a sample source file that adds scripted animation using these classes. 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.
onLoadInit
event). Then you load the target JPEG image into a movie clip that
createEmptyMovieClip()
Chapter 48, "TransitionManager class"
About the Tween and TransitionManager classes
event triggers and executes the block
_alpha
"Using the Tween class" on page
property in the
method.
490.
Chapter 51, "Tween
in the Components
497

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?

This manual is also suitable for:

Flash 8

Table of Contents