TextField.background
Availability
Flash Player 6.
Usage
my_txt.background:Boolean
Description
Property; if
true
background fill.
Example
The following example creates a text field with a button that toggles the background color of the
field.
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 320, 240);
my_txt.border = true;
my_txt.text = "Lorum ipsum";
my_txt.backgroundColor = 0xFF0000;
toggle_btn.onRelease = function() {
my_txt.background = !my_txt.background;
};
878
Chapter 2: ActionScript Language Reference
, the text field has a background fill. If
, the text field has no
false
Need help?
Do you have a question about the FLASH MX 2004-ACTIONSCRIPT LANGUAGE and is the answer not in the manual?
Questions and answers