03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Example<br />

This tellTarget statement controls the movie clip instance ball on the main Timeline. Frame 1<br />

of the ball instance is blank <strong>and</strong> has a stop() action so it isn't visible on the Stage. When you<br />

click the button with the following action, tellTarget tells the playhead in ball to go to Frame<br />

2, where the animation starts:<br />

on(release) {<br />

tellTarget("_parent.ball") {<br />

gotoAndPlay(2);<br />

}<br />

}<br />

The following example uses dot (.) notation to achieve the same results:<br />

on(release) {<br />

_parent.ball.gotoAndPlay(2);<br />

}<br />

If you need to issue multiple comm<strong>and</strong>s to the ball instance, you can use the with action, as<br />

shown in the following statement:<br />

on(release) {<br />

with(_parent.ball) {<br />

gotoAndPlay(2);<br />

_alpha = 15;<br />

_xscale = 50;<br />

_yscale = 50;<br />

}<br />

}<br />

See also<br />

with statement<br />

toggleHighQuality function<br />

toggleHighQuality()<br />

Deprecated since Flash Player 5. This function was deprecated in favor of _quality.<br />

Turns anti-aliasing on <strong>and</strong> off in Flash Player. Anti-aliasing smooths the edges of objects <strong>and</strong><br />

slows down SWF playback. This action affects all SWF files in Flash Player.<br />

Example<br />

The following code could be applied to a button that, when clicked, would toggle antialiasing<br />

on <strong>and</strong> off:<br />

Global Functions 83

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!