Alpha (Textfield._Alpha Property) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

Flash lite 2.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Returns
-
Boolean
Example
The following example defines an
defines a new listener object,
object. This handler will be invoked when the text field
code calls
TextField.addListener
field
so that it will be notified when
my_txt
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 100,
22);
my_txt.border = true;
my_txt.type = "input";
my_txt.onChanged = function(textfield_txt:TextField) {
trace(textfield_txt._name+" changed");
};
var txtListener:Object = new Object();
txtListener.onChanged = function(textfield_txt:TextField) {
trace(textfield_txt._name+" changed and notified myListener");
};
my_txt.addListener(txtListener);
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
Note: This property is not supported for Arabic, Hebrew, and Thai.
Availability: ActionScript 1.0; Flash Lite 2.0
handler for the input text field
onChanged
, and defines an
txtListener
to register the listener object
my_txt
,
onScroller (TextField.onScroller
handler for that
onChanged
is changed. The final line of
my_txt
txtListener
changes.
. It then
my_txt
with the text
TextField
651

Advertisement

Table of Contents
loading

Table of Contents