Example
This tellTarget statement controls the movie clip instance ball on the main Timeline. Frame 1
of the ball instance is blank and has a stop() action so it isn't visible on the Stage. When you
click the button with the following action, tellTarget tells the playhead in ball to go to 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);
}
If you need to issue multiple commands to the ball instance, you can use the with action, as
shown in the following statement:
on(release) {
with(_parent.ball) {
gotoAndPlay(2);
_alpha = 15;
_xscale = 50;
_yscale = 50;
}
}
See also
with statement
toggleHighQuality function
toggleHighQuality()
Deprecated since Flash Player 5. This function was deprecated in favor of
Turns anti-aliasing on and off in Flash Player. Anti-aliasing smooths the edges of objects and
slows down SWF playback. This action affects all SWF files in Flash Player.
Availability: ActionScript 1.0; Flash Lite 1.0
88
ActionScript language elements
.
_quality
Need help?
Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?
Questions and answers