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.
<actionSetTarget spriteName="spriteNameWithPath" [event="eventName"] />
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. |
no |
- |
|
| event |
Event that triggers this action. Actual only when action is owned by button element. |
yes |
button element, actions collection
For SWF file Movie.swf with the following structure:
it will be possible to refer sprites with spriteName attribute in the follwoing manner: