Search code examples
apache-flexactionscriptcomboboxeditortextinput

How can I reference the TextInput of an editable ComboBox?


I have an editable ComboBox component and I want to reference the TextInput that is shown, in order to programmatically select the Text in it. This is very straightforward on a TextInput:

private function selectNameText():void
{
    nameTextInput.selectionBeginIndex = 0;

    nameTextInput.selectionEndIndex = nameTextInput.text.length;
}

But I can't find any way to access the TextInput of an editable ComboBox.


Solution

  • It seems that referencing the TextInput for THIS reason is unnecessary, since the text is selected by default.