About the Tween and TransitionManager classes
481
For detailed information on caching button or movie clip instances see the following sections
in
Chapter 11, “Working with Movie Clips”
:
■
“About caching and scrolling movie clips with ActionScript” on page 369
■
“Caching a movie clip” on page 373
■
“Setting the background of a movie clip” on page 375
It’s ideal to use the
cacheAsBitmap
property with movie clips that have mostly static content
and that do not scale and rotate frequently. With such movie clips, using the
cacheAsBitmap
property can lead to performance improvements when the movie clip is translated (when its
x
and
y
position is changed). For detailed information about when to use this feature, see
“When to enable caching” on page 371
.
You can find a sample source file that shows you how bitmap caching can be applied to an
instance. Find the file called cacheBitmap.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\CacheBitmap.
■
On the Macintosh, browse to
Macintosh HD
/Applications/Macromedia Flash 8/Samples
and Tutorials/Samples/ActionScript/CacheBitmap.
You can also find a sample source file that shows you how to apply bitmap caching to scrolling
text. Find the sample source file, flashtype.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\FlashType.
■
On the Macintosh, browse to
Macintosh HD
/Applications/Macromedia Flash 8/Samples
and Tutorials/Samples/ActionScript/FlashType.
About the Tween and TransitionManager
classes
When you install Flash Basic 8 or Flash Professional 8, you also install two powerful classes:
the Tween and TransitionManager classes. This section describes how to use these classes with
movie clips and Macromedia V2 components (included with Flash MX 2004 and Flash 8) to
add animation easily to your SWF files.
If you create a slide presentation or form application with Flash Professional 8 (ActionScript
2.0 only), you can select behaviors that add different kinds of transitions between slides,
which is similar to when you create a PowerPoint presentation. You add this functionality into
a screen application by using the Tween and TransitionManager classes, which generate
ActionScript that animates the screens depending on the behavior that you choose.
Summary of Contents for FLASH 8-LEARNING ACTIONSCRIPT 2.0 IN FLASH
Page 1: ...Learning ActionScript 2 0 in Flash...
Page 8: ...8 Contents...
Page 18: ...18 Introduction...
Page 30: ...30 What s New in Flash 8 ActionScript...
Page 66: ...66 Writing and Editing ActionScript 2 0...
Page 328: ...328 Interfaces...
Page 350: ...350 Handling Events...
Page 590: ...590 Creating Interaction with ActionScript...
Page 710: ...710 Understanding Security...
Page 730: ...730 Debugging Applications...
Page 780: ...780 Deprecated Flash 4 operators...
Page 830: ...830 Index...