Textfield._Xscale - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

TextField._xscale

Availability
Flash Player 6.
Usage
my_txt._xscale:Number
Description
Property; 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
scaleDown_btn
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
TextField._x, TextField._y,
938
Chapter 2: ActionScript Language Reference
my_txt
instances.
TextField._yscale
instance when you click the
and
scaleUp_btn

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents