Button._yscale Property

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
Button._yscale Property Flash 6

height of a button, as a percentage read/write
theButton._yscale

Description

The floating-point _yscale property specifies the height of theButton, relative to its original height, expressed as a percentage. Its "original height" is the pixel height of its Library symbol. When the current height of theButton is the same as its original height, _yscale is 100. A _yscale of 300 triples theButton's original height; a _yscale of 50 halves its original height.

Button._yscale is directly analogous to MovieClip._yscale; see that property entry for full details.

Example

// Restore sort_btn to its original (Library symbol) size sort_btn._yscale = 100; sort_btn._xscale = 100;

See Also

Button._height, Button._xscale, MovieClip._yscale



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net