Table of Contents

Button._x Property Flash 6

horizontal location of the button, in pixels read/write
theButton._x

Description

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

The _x property (along with all horizontal coordinates in Flash) increases to the right and decreases to the left.

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

Example

// Place quit_btn 100 pixels to the right of its parent's registration point
quit_btn._x = 100;
// Move the button over 10 more pixels to the right
quit_btn._x += 10;

See Also

Button._y, MovieClip._x


Table of Contents