User Guide
878 Chapter 2: ActionScript Language Reference
TextField.background
Availability
Flash Player 6.
Usage
my_txt.background:Boolean
Description
Property; if true, the text field has a background fill. If false, the text field has no
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;
};