ActionScript 2.0 Components Language Reference |
|
|
|
| TextInput component > TextInput.editable | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
textInputInstance.editable
Property; a Boolean value that indicates whether the component is editable (true) or not (false). The default value is true.
This example sets the editable property to a value of false for the my_ti TextInput instance. This prevents the user from entering text in the instance. You can set the property to true to make the make the TextInput instance editable.
You must first drag a TextInput component to the Stage and give it an instance name of my_ti; then add the following code to Frame 1.
/** Requires: - TextInput instance on Stage (instance name: my_ti) */ var my_ti:mx.controls.TextInput; my_ti.editable = false;
|
|
|
|