Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Button > _y (Button._y property) | |||
public _y : Number
The y coordinate of the button relative to the local coordinates of the parent movie clip. If a button is in the main Timeline, its coordinate system refers to the upper left corner of the Stage as (0, 0). If the button is inside another movie clip that has transformations, the button is in the local coordinate system of the enclosing movie clip. Thus, for a movie clip rotated 90 degrees counterclockwise, the enclosed button inherits a coordinate system that is rotated 90 degrees counterclockwise. The button's coordinates refer to the registration point position.
Availability: ActionScript 1.0; Flash Player 6
The following example sets the coordinates of my_btn to 0 on the Stage. Create a button called my_btn and enter the following ActionScript in Frame 1 of the Timeline:
my_btn._x = 0; my_btn._y = 0;
_x (Button._x property), _xscale (Button._xscale property), _yscale (Button._yscale property)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00001475.html