Reset a combo box AS3
Posted by robert | Filed under ActionScript 3
You can set selectedIndex to 0 and it will just reset the combo box to the first selectable item in the list…
myComboBox.selectedIndex = 0;
However if you define the prompt property, then setting selectedIndex to zero won’t get you what you want. instead do this and it will be just like when you first started:
myComboBox.selectedItem = myComboBox.prompt;
December 6, 2011 at 5:51 am
Thank you very much
June 18, 2013 at 5:20 am
thnx very much big time