Specify bitmap caching for a movie clip, Symbols and actionscript, Controlling instances with behaviors – Adobe Flash Professional CS3 User Manual

Page 231

Advertising
background image

FLASH CS3

User Guide

225

For more information, see When to enable caching in Learning ActionScript 2.0 in Adobe Flash.

Note: You can only use the Use Runtime Bitmap Caching option for movie clip and button symbols.

Under the following circumstances, a movie clip does not use a bitmap (even if Use Runtime Bitmap Caching is
selected) but instead renders the movie clip or button symbol by using vector data:

The bitmap is too large (greater than 2880 pixels in either direction).

The bitmap fails to allocate (producing an out of memory error).

Specify bitmap caching for a movie clip

1

Select the movie clip or button symbol on the Stage.

2

In the Property inspector, select Use Runtime Bitmap Caching.

Symbols and ActionScript

About controlling instances and symbols with ActionScript

To control movie clip and button instances, use ActionScript. The movie clip or button instance must have a unique
instance name to be used with ActionScript. To control movie clip or button symbols, use ActionScript. For more
information, see Handling events in Learning ActionScript 2.0 in Adobe Flash or Handling events in Programming
ActionScript 3.0
.

See also

“Edit symbols” on page 211

Controlling instances with behaviors

In FLA files where the ActionScript Publish setting is set to ActionScript 2.0, you can use behaviors to control movie
clip and graphic instances in a document without writing ActionScript. Behaviors are prewritten ActionScript scripts
that let you add ActionScript coding to your document without having to create the ActionScript code yourself.
Behaviors are not available for ActionScript 3.0.

You can use behaviors with an instance to arrange it in the stacking order on a frame, as well as to load or unload,
play, stop, duplicate, or drag a movie clip, or to link to a URL.

In addition, you can use behaviors to load an external graphic or an animated mask into a movie clip.

Flash includes the behaviors in the following table.

Advertising