Flash Lite 2.x and 3.0 ActionScript Language Reference

_xscale (TextField._xscale property)

public _xscale : Number

Determines the horizontal scale of the text field as applied from the registration point of the text field, expressed as a percentage. The default registration point is (0,0).

Example

The following example scales the my_txt instance when you click the scaleUp_btn and scaleDown_btn instances.

this.createTextField("my_txt", 99, 10, 40, 100, 22);
my_txt.autoSize = true;
my_txt.border = true;
my_txt.selectable = false;
my_txt.text = "Sample text goes here.";

scaleUp_btn.onRelease = function() {
    my_txt._xscale = 2;
    my_txt._yscale = 2;
}
scaleDown_btn.onRelease = function() {
    my_txt._xscale /= 2;
    my_txt._yscale /= 2;
}

See also

_x (TextField._x property), _y (TextField._y property), _yscale (TextField._yscale property)