Flash CS3 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > TextField > _visible (TextField._visible property) | |||
public _visible : Boolean
A Boolean value that indicates whether the text field my_txt is visible. Text fields that are not visible (_visible property set to false) are disabled.
Availability: ActionScript 1.0; Flash Player 6
The following example creates a text field called my_txt. A button called visible_btn toggles the visibility of my_txt.
this.createTextField("my_txt", 1, 10, 10, 200, 22);
my_txt.background = true;
my_txt.backgroundColor = 0xDFDFDF;
my_txt.border = true;
my_txt.type = "input";
visible_btn.onRelease = function() {
my_txt._visible = !my_txt._visible;
};
_visible (Button._visible property), _visible (MovieClip._visible property)
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00002252.html