MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Reference page 763

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,
TextField._y
Availability
Flash Player 6.
Usage
my_txt._y:Number
Description
Property; the y coordinate of a text field relative to the local coordinates of the parent movie clip.
If a text field is in the main Timeline, then its coordinate system refers to the upper left corner of
the Stage as (0, 0). If the text field is inside another movie clip that has transformations, the text
field is in the local coordinate system of the enclosing movie clip. Thus, for a movie clip rotated
90 º counterclockwise, the enclosed text field inherits a coordinate system that is rotated 90 º
counterclockwise. The text field's coordinates refer to the registration point position.
my_txt
instances.
TextField._yscale
instance when you click the
and
scaleUp_btn
TextField._y
763

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flex

Table of Contents