};
my_txt.addListener(txtListener);
See also
TextField.onChanged, TextField.onScroller,
TextField._alpha
Availability
Flash Player 6.
Usage
my_txt._alpha:Number
Description
Property; sets or retrieves the alpha transparency value of the text field specified by
values are 0 (fully transparent) to 100 (fully opaque). The default value is 100. Transparency
values are not supported for text files that use device fonts. You must use embedded fonts to use
the
transparency property with a text field.
_alpha
Example
The following code sets the
for a font symbol to
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "my font";
// where 'my font' is the linkage name of a font in the Library
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 100, 22);
my_txt.border = true;
my_txt.embedFonts = true;
my_txt.text = "Hello World";
my_txt.setTextFormat(my_fmt);
my_txt._alpha = 20;
See also
MovieClip._alpha
TextField.autoSize
Availability
Flash Player 6.
Usage
my_txt.autoSize:String
my_txt.autoSize:Boolean
Description
Property; controls automatic sizing and alignment of text fields. Acceptable values for autoSize are
(the default),
"none"
is a synonym for
true
720
Chapter 7: ActionScript for Flash
property of a text field named
_alpha
. Add the following ActionScript to your FLA or AS file:
my font
,
, and
"left"
"right"
and
is a synonym for
"left"
false
TextField.removeListener()
my_txt
. When you set the
"center"
"none"
my_txt
to 20%. Set the linkage
property,
autoSize
.
. Valid
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?