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.

You might notice that two of these buttons, one in the main SWF file <strong>and</strong> one in the loaded<br />

SWF file, have the same depth value. This is misleading because buttonMovie.swf was loaded<br />

at depth 999, which means that the button it contains will also have a depth of 999 relative to<br />

the buttons in the main SWF file. You should keep in mind that each movie clip has its own<br />

internal z-order, which means that each movie clip has its own set of depth values. The two<br />

buttons may have the same depth value, but the values only have meaning in relation to other<br />

objects in the same z-order. In this case, the buttons have the same depth value, but the values<br />

relate to different movie clips. For example, the depth value of the button in the main SWF<br />

file relates to the z-order of the main timeline, while the depth value of the button in the<br />

loaded SWF file relates to the internal z-order of the myClip_mc movie clip.<br />

See also<br />

getDepth (MovieClip.getDepth method), getDepth (TextField.getDepth method),<br />

getInstanceAtDepth (MovieClip.getInstanceAtDepth method)<br />

_height (Button._height property)<br />

public _height : Number<br />

The height of the button, in pixels.<br />

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

Example<br />

The following example sets the height <strong>and</strong> width of a button called my_btn to a specified<br />

width <strong>and</strong> height.<br />

my_btn._width = 500;<br />

my_btn._height = 200;<br />

_highquality (Button._highquality property)<br />

public _highquality : Number<br />

Deprecated since Flash Player 7. This property was deprecated in favor of Button._quality.<br />

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

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

366 <strong>ActionScript</strong> classes

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

Saved successfully!

Ooh no, something went wrong!