Button._xscale
Availability
Flash Player 6.
Usage
my_btn._xscale:Number
Description
Property; the horizontal scale of the button as applied from the registration point of the button,
expressed as a percentage. The default registration point is (0,0).
Scaling the local coordinate system affects the
pixels. For example, if the parent movie clip is scaled to 50%, setting the
object in the button by half the number of pixels that it would if the SWF file were at 100%.
Example
The following example scales a button called my_btn. When you click and release the button, it
grows 10% on the x and y axis. Enter the following ActionScript in Frame 1 of the Timeline:
my_btn.onRelease = function(){
this._xscale *= 1.1;
this._yscale *= 1.1;
};
See also
Button._x, Button._y,
Button._yscale
and
property settings, which are defined in
_x
_y
property moves an
_x
Button._xscale
169
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?