![]() ![]() | |
Flash Player 6.0.79.
Flash MX 2004.
myComboBox.editable
Property; indicates whether the combo box is editable (true) or not (false). An editable combo box can have values entered into the text box that do not show up in the drop-down list. If a combo box is not editable, only values listed in the drop-down list can be entered into the text box. The default value is false.
Setting a combo box to editable clears the combo box text field. It also sets the selected index (and item) to undefined. To make a combo box editable and still retain the selected item, use the following code:
var ix = myComboBox.selectedIndex; myComboBox.editable = true; // clears the text field. myComboBox.selectedIndex = ix; // copies the label back into the text field.
The following code makes myComboBox editable:
myComboBox.editable = true;
![]() ![]() | |