
Button._y Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
477
Button._xmouse Property
horizontal location of mouse pointer, relative to the button’s registration point
Flash 6
read-only
theButton._xmouse
Description
The floating-point _xmouse property indicates the horizontal location of the mouse
pointer’s hotspot, relative to
theButton’s registration point. To obtain a consistent _xmouse
coordinate that is always measured relative to the Stage, use _root._xmouse.
See Also
Button._ymouse, MovieClip._xmouse
Button._xscale Property
width of a button, as a percentage
Flash 6
read/write
theButton._xscale
Description
The floating-point _xscale property specifies the width of theButton, relative to its original
width, expressed as a percentage. Its “original width” is the pixel width of its Library
symbol. When the current width of
theButton is the same as its original width, _xscale is
100. An
_xscale of 200 doubles theButton’s original width; an _xscale of 50 halves its orig-
inal width.
Button._xscale is directly analogous to MovieClip._xscale; see that property entry for full
details.
Example
// Double run_btn's width, relative to its Library symbol's width
run_btn._xscale = 200;
See Also
Button._width, Button._yscale, MovieClip._xscale
Button._y Property
vertical location of the button, in pixels
Flash 6
read/write ...