![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
Flash Player 6.
my_txt
.autoSize
Property; controls automatic sizing and alignment of text fields. Acceptable values for autoSize are "none"
(the default), "left"
, "right"
, and "center"
. When you set the autoSize
property, true
is a synonym for "left"
and false
is a synonym for "none"
.
The values of autoSize
, multiline
, and wordWrap
determine whether a text field expands or contracts to the left side, right side, or bottom side. You can use the following code and enter different values for autoSize
, multiline
, and wordWrap
to see how the field resizes when these values change.
createTextField("my_txt", 1, 0, 0, 200, 20); with (my_txt) { border = true; borderColor = 0x000000; multiline = false; wordWrap = false; autoSize = "none"; text = "Here is a whole bunch of text that won't fit in the field "; }
The following sets the autosize
property of the text field my_txt
to "center"
.
my_txt.autosize = "center";
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |