For detailed information on caching button or movie clip instances see the following sections
in
Chapter 11, "Working with Movie
"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
and that do not scale and rotate frequently. With such movie clips, using the
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
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.
Clips":
property with movie clips that have mostly static content
371.
About the Tween and TransitionManager classes
cacheAsBitmap
481
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?