Button._x Property | Flash 6 |
horizontal location of the button, in pixels | read/write |
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:
If theButton resides on the main timeline, _x is measured relative to the Stage's left edge.
If theButton resides on a movie clip instance's timeline, _x is measured relative to the registration point of that parent instance.
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.
// 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;