actionSetTarget Element

The actionSetTarget element changes context for for Flash Player actions (ActionScript commands) execution. Flash movie may contain embedded movie clips, which also may embed clips, etc. After actionSetTarget have appeared all actions will be applied in the sprite (movie clip) specified with its spriteName attribute. If spriteName attribute is empty all actions will be applied to the root movie.

Syntax

<actionSetTarget spriteName="spriteNameWithPath" [event="eventName"] />

Attributes

Name

Description

Value type

Optional

Default Value

spriteName

Name of the sprite (clip) all actions will be applied to. This name appears in showId attribute of show tag when sprite is shown. See Remarks section below about using name attribute for nested sprites. You could not refer to sprites which wer not being shown with show tag.

string

no

-

event

Event that triggers this action. Actual only when action is owned by button element.

event

yes

press

Parent Elements

button element, actions collection

Remarks

For SWF file Movie.swf with the following structure:

it will be possible to refer sprites with spriteName attribute in the follwoing manner:

See Also

XML Schema Reference