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 Player 2
Example
The following code could be applied to a button that, when clicked, would toggle anti-
aliasing on and off:
on(release) {
toggleHighQuality();
}
See also
,
_quality property
108
ActionScript language elements
.
_quality
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?
Questions and answers