User Guide

1226 ActionScript classes
}
Mouse.addListener(mouseListener);
The MovieClip.getNextHighestDepth() method used in this example requires Flash Player
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
MovieClip.getNextHighestDepth() method.
See also
_ymouse (TextField._ymouse property)
_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).
Availability: ActionScript 1.0; Flash Player 6
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)