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.

_parent (Button._parent property)<br />

public _parent : MovieClip<br />

A reference to the movie clip or object that contains the current movie clip or object. The<br />

current object is the one containing the ActionScript code that references _parent.<br />

Use _parent to specify a relative path to movie clips or objects that are above the current<br />

movie clip or object. You can use _parent to move up multiple levels in the display list as in<br />

the following:<br />

this._parent._parent._alpha = 20;<br />

Example<br />

In the following example, a button named my_btn is placed inside a movie clip called my_mc.<br />

The following code shows how to use the _parent property to get a reference to the movie<br />

clip my_mc:<br />

trace(my_mc.my_btn._parent);<br />

The Output panel displays the following:<br />

_level0.my_mc<br />

See also<br />

_parent (MovieClip._parent property), _target (MovieClip._target property),<br />

_root property<br />

_quality (Button._quality property)<br />

public _quality : String<br />

Property (global); sets or retrieves the rendering quality used for a SWF file. Device fonts are<br />

always aliased <strong>and</strong> therefore are unaffected by the _quality property.<br />

The _quality property can be set to the following values:<br />

■ "LOW" Low rendering quality. Graphics are not anti-aliased, <strong>and</strong> bitmaps are not<br />

smoothed.<br />

■ "MEDIUM" Medium rendering quality. Graphics are anti-aliased using a 2 x 2 pixel grid, but<br />

bitmaps are not smoothed. This is suitable for movies that do not contain text.<br />

■ "HIGH" High rendering quality. Graphics are anti-aliased using a 4 x 4 pixel grid, <strong>and</strong><br />

bitmaps are smoothed if the movie is static. This is the default rendering quality setting<br />

used by Flash.<br />

Note: Although you can specify this property for a Button object, it is actually a global<br />

property, <strong>and</strong> you can specify its value simply as _quality.<br />

Button 267

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

Saved successfully!

Ooh no, something went wrong!