Add and configure a behavior – Adobe Flash Professional CS3 User Manual

Page 232

Advertising
background image

FLASH CS3

User Guide

226

See also

“Control sounds using behaviors” on page 299

“Control video playback using behaviors” on page 323

Add and configure a behavior

Be sure you are working in a FLA file whose ActionScript Publish setting is ActionScript 2.0 or earlier.

1

Select the object, such as a button, to trigger the behavior.

2

In the Behaviors panel (Window > Behaviors), click the Add (+) button and select the desired behavior from the

Movieclip submenu.

Behavior

Purpose

Select or input

Load Graphic

Loads an external JPEG file into a
movie clip or screen.

Path and filename of JPEG file.

Instance name of movie clip or
screen receiving the graphic.

Load External Movieclip

Loads an external SWF file into a
target movie clip or screen.

URL of external SWF file.

Instance name of movie clip or
screen receiving the SWF file.

Duplicate Movieclip

Duplicates a movie clip or screen.

Instance name of movie clip to
duplicate.

X-offset and Y-offset of pixels from
original to copy.

Goto And Play at frame or label

Plays a movie clip from a partic-
ular frame.

Instance name of target clip to
play.

Frame number or label to play.

Goto And Stop at frame or label

Stops a movie clip, optionally
moving the playhead to a partic-
ular frame.

Instance name of target clip to
stop.

Frame number or label to stop.

Bring To Front

Brings target movie clip or screen
to the top of the stacking order.

Instance name of movie clip or
screen.

Bring Forward

Brings target movie clip or screen
one position higher in the
stacking order.

Instance name of movie clip or
screen.

Send To Back

Sends the target movie clip to the
bottom of the stacking order.

Instance name of movie clip or
screen.

Send Backward

Sends the target movie clip or
screen one position lower in the
stacking order.

Instance name of movie clip or
screen.

Start Dragging Movieclip

Starts dragging a movie clip.

Instance name of movie clip or
screen.

Stop Dragging Movieclip

Stops the current drag.

Unload Movieclip

Removes a movie clip that was
loaded by means of loadMovie()
from Flash Player.

Instance name of movie clip.

Advertising