User Guide

TextInput.editable 1221
TextInput.editable
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
textInputInstance.editable
Description
Property; a Boolean value that indicates whether the component is editable (true) or not
(
false). The default value is true.
Example
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;