
720
Chapter 7: ActionScript for Flash
};
my_txt.addListener(txtListener);
See also
TextField.onChanged
,
TextField.onScroller
,
TextField.removeListener()
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
my_txt
. Valid
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
_alpha
transparency property with a text field.
Example
The following code sets the
_alpha
property of a text field named
my_txt
to 20%. Set the linkage
for a font symbol to
my font
. Add the following ActionScript to your FLA or AS file:
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
"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"
.
Содержание FLEX-FLEX ACTIONSCRIPT LANGUAGE
Страница 1: ...Flex ActionScript Language Reference...
Страница 8: ......
Страница 66: ...66 Chapter 2 Creating Custom Classes with ActionScript 2 0...
Страница 76: ......
Страница 133: ...break 133 See also for for in do while while switch case continue throw try catch finally...
Страница 135: ...case 135 See also break default strict equality switch...
Страница 146: ...146 Chapter 5 ActionScript Core Language Elements See also break continue while...
Страница 229: ...while 229 i 3 The following result is written to the log file 0 3 6 9 12 15 18 See also do while continue for for in...
Страница 808: ...808 Chapter 7 ActionScript for Flash...
Страница 810: ...810 Appendix A Deprecated Flash 4 operators...
Страница 815: ...Other keys 815 Num Lock 144 186 187 _ 189 191 192 219 220 221 222 Key Key code...
Страница 816: ...816 Appendix B Keyboard Keys and Key Code Values...
Страница 822: ...822 Index...