Alpha (Textfield._Alpha Property) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

See also
onChanged (TextField.onChanged handler)
,
handler)
removeListener (TextField.removeListener method)

_alpha (TextField._alpha property)

public _alpha : Number
Sets or retrieves the alpha transparency value of the text field. Valid values are 0 (fully
transparent) to 100 (fully opaque). The default value is 100. Transparency values are not
supported for text fields that use device fonts. You must use embedded fonts to use the
transparency property with a text field.
_alpha
Availability: ActionScript 1.0; Flash Player 6
Example
The following code sets the
new font symbol in the library by selecting New Font from the Library options menu. Then
set the linkage of the font to
following ActionScript code 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;
The
MovieClip.getNextHighestDepth()
7 or later. If your SWF file includes a version 2 component, use the version 2 components
DepthManager class instead of the
See also
_alpha (Button._alpha property)
,
property of a text field named
_alpha
. Set the linkage for a font symbol to
my font
method used in this example requires Flash Player
MovieClip.getNextHighestDepth()
,
_alpha (MovieClip._alpha property)
onScroller (TextField.onScroller
my_txt
to 20%. Create a
. Add the
my font
method.
TextField
1169

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF