_yscale (Button._yscale property)

public _yscale : Number

The vertical scale of the button as applied from the registration point of the button, expressed as a percentage. The default registration point is (0,0).

Availability: ActionScript 1.0; Flash Player 6

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

_y (Button._y property), _x (Button._x property), _xscale (Button._xscale 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/00001477.html