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

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

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

Specifies the level of anti-aliasing applied to the current SWF file. Specify 2 (best quality) to<br />

apply high quality with bitmap smoothing always on. Specify 1 (high quality) to apply antialiasing;<br />

this smooths bitmaps if the SWF file does not contain animation <strong>and</strong> is the default<br />

value. Specify 0 (low quality) to prevent anti-aliasing.<br />

Example<br />

Add a button instance on the Stage <strong>and</strong> name it myBtn_btn. Draw an oval on the Stage using<br />

the Oval tool that has a stroke <strong>and</strong> fill color. Select Frame 1 <strong>and</strong> add the following<br />

ActionScript using the Actions panel:<br />

myBtn_btn.onRelease = function() {<br />

myBtn_btn._highquality = 0;<br />

};<br />

When you click myBtn_btn, the circle's stroke will look jagged. You could add the following<br />

ActionScript instead to affect the SWF globally:<br />

_quality = 0;<br />

See also<br />

_quality (Button._quality property), _quality property<br />

_name (Button._name property)<br />

public _name : String<br />

Instance name of the button specified by my_btn.<br />

Example<br />

The following example traces all instance names of any Button instances within the current<br />

Timeline of a SWF file.<br />

for (i in this) {<br />

if (this[i] instanceof Button) {<br />

trace(this[i]._name);<br />

}<br />

}<br />

onDragOut (Button.onDragOut h<strong>and</strong>ler)<br />

onDragOut = function() {}<br />

Invoked when the user presses the mouse button over the button <strong>and</strong> then drags the pointer<br />

outside of the button. You must define a function that is executed when the event h<strong>and</strong>ler is<br />

invoked.<br />

260 ActionScript classes

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

Saved successfully!

Ooh no, something went wrong!