03.05.2013 Views

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

ActionScript 2.0 Language Reference - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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 />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 2<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 />

on(release) {<br />

toggleHighQuality();<br />

}<br />

See also<br />

_highquality property, _quality property<br />

trace function<br />

trace(expression:Object)<br />

You can use Flash Debug Player to capture output from the trace() function <strong>and</strong> display the<br />

result. If any argument in a trace statement includes a data type other than a String, the trace<br />

function invokes the associated toString() method for that data type. For example, if the<br />

argument is a Boolean value the trace function invokes Boolean.toString() <strong>and</strong> displays the<br />

return value.<br />

Use this statement to record programming notes or to display messages in the Output panel<br />

while testing a SWF file. Use the expression parameter to check whether a condition exists,<br />

or to display values in the Output panel. The trace() statement is similar to the alert<br />

function in JavaScript.<br />

You can use the Omit Trace Actions comm<strong>and</strong> in the Publish Settings dialog box to remove<br />

trace()actions from the exported SWF file.<br />

Availability: <strong>ActionScript</strong> 1.0; Flash Player 4<br />

Global Functions 113

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

Saved successfully!

Ooh no, something went wrong!