Button._y Property

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

vertical location of the button, in pixels read/write
theButton._y

Description

The floating-point _y property indicates the vertical position of theButton's registration point. It is measured relative to one of two possible coordinate spaces:

  • If theButton resides on the main timeline, _y is measured relative to the Stage's top edge.

  • If theButton resides on a movie clip instance's timeline, _y is measured relative to the registration point of that parent instance.

The _y property (along with all vertical coordinates in Flash) increases downward and decreases upward the opposite of the Cartesian coordinate system.

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

Example

// Place quit_btn directly on its parent's registration point. quit_btn._x = 0; quit_btn._y = 0;

See Also

Button._x, MovieClip._y



    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