MACROMEDIA FLASH MX 2004-USING FLASH Use Manual page 26

Hide thumbs Also See for FLASH MX 2004-USING FLASH:
Table of Contents

Advertisement

To specify a target path:
Use the Insert Target Path button (and dialog box) in the Actions panel.
Enter the target path manually.
Create an expression that evaluates to a target path. You can use the built-in functions
and
targetPath
To assign an instance name:
Select a movie clip or button on the Stage.
1.
Enter an instance name in the Property inspector.
2.
To insert a target path using the Insert Target Path dialog box:
Select the movie clip, frame, or button instance to which you want to assign the action.
1.
This becomes the controlling Timeline.
Select Window > Development Panels > Actions to display the Actions panel if it's not
2.
already open.
In the Actions toolbox (at the left of the panel), select an action or method that requires a
3.
target path.
Click the parameter box or location in the script where you want to insert the target path.
4.
Click the Insert Target Path button above the Script pane.
5.
In the Insert Target Path dialog box, select a syntax: Dots (the default) or Slashes.
6.
Select Absolute or Relative for the target path mode.
7.
For more information, see
Select a movie clip in the Insert Target Path display list.
8.
Click OK.
9.
To insert a target path manually:
Follow steps 1–4 and enter an absolute or relative target path in the Actions panel.
To use an expression as a target path:
Follow steps 1–3.
1.
Do one of the following:
2.
Enter an expression that evaluates to a target path in a parameter box.
Click to place the insertion point in the script. Then, in the Functions category of the
Actions toolbox, double-click the
The
targetPath
Click to place the insertion point in the script. Then, in the Functions category of the
Actions toolbox, select the
The
function converts a string to a movie clip reference that can be used to call methods
eval
such as
.
play
26
Chapter 1: Working with Flash Documents
.
eval
"Using absolute and relative target paths" on page
targetPath
function converts a reference to a movie clip into a string.
function.
eval
function.
23.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents