684 Chapter 12: ActionScript Dictionary
TextField._alpha
Availability
Flash Player 6.
Usage
my_txt._alpha
Description
Property; sets or retrieves the alpha transparency value of the text field specified by my_txt. Valid
values are 0 (fully transparent) to 100 (fully opaque). The default value is 100.
Example
The following code sets the _alpha property of a text field named text1_txt to 30% when the
button is clicked:
on(release) {
text1_txt._alpha = 30;
}
See also
Button._alpha, MovieClip._alpha
TextField.autoSize
Availability
Flash Player 6.
Usage
my_txt.autoSize
Description
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 ";
}