tellTarget
Availability
Flash Player 3. This function was deprecated in Flash 5; Macromedia recommends that you use
dot (.) notation and the
Usage
tellTarget("target") {
statement(s);
}
Parameters
A string that specifies the target path of the Timeline to be controlled.
target
statement(s)
Returns
Nothing.
Description
Action; applies the instructions specified in the
in the
parameter. The
target
to buttons that stop or start movie clips elsewhere on the Stage. You can also make
tellTarget
movie clips go to a particular frame in that clip. For example, you might assign
buttons that stop or start movie clips on the Stage or prompt movie clips to jump to a
particular frame.
In Flash 5 or later, you can use dot (.) notation instead of the
action to issue multiple actions to the same Timeline. You can use the
with
any object, whereas the
Example
This
tellTarget
of the
instance is blank and has a
ball
click the button with the following action,
Frame 2, where the animation starts:
on(release) {
tellTarget("_parent.ball") {
gotoAndPlay(2);
}
}
The following example uses dot (.) notation to achieve the same results:
on(release) {
_parent.ball.gotoAndPlay(2);
}
1100
Appendix: Deprecated Language Elements
statement.
with
The instructions to execute if the condition is
tellTarget
action can target only movie clips.
tellTarget
statement controls the movie clip instance
stop()
true
parameter to the Timeline specified
statements
action is useful for navigation controls. Assign
tellTarget
ball
action so it isn't visible on the Stage. When you
tells the playhead in
tellTarget
.
tellTarget
action. You can use the
action to target
with
on the main Timeline. Frame 1
to go to
ball
to
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?