Description
Deprecated action; applies the instructions specified in the
Timeline specified in the
controls. Assign
tellTarget
can also make movie clips go to a particular frame in that clip. For example, you might assign
to buttons that stop or start movie clips on the Stage or prompt movie clips to jump
tellTarget
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
statement controls the movie clip instance
tellTarget
of the
instance is blank and has a
ball
the button with the following action is clicked,
Frame 2 where the animation starts.
on(release) {
tellTarget("ball") {
gotoAndPlay(2);
}
}
The following example uses dot notation to achieve the same results.
on(release) {
ball.gotoAndPlay(2);
}
If you need to issue multiple commands to the
the following statement.
on(release) {
with(ball) {
gotoAndPlay(2);
_alpha = 15;
_xscale = 50;
_yscale = 50;
}
}
See also
with
parameter. The
target
to buttons that stop or start movie clips elsewhere on the Stage. You
action can only target movie clips.
tellTarget
stop()
statements
action is useful for navigation
tellTarget
tellTarget
on the main Timeline. Frame 1
ball
action so that it isn't visible on the Stage. When
tells the playhead in
tellTarget
instance, you can use the
ball
parameter to the
action. You can use the
action to target
with
to go to
ball
action, as in
with
tellTarget
679
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?