Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resetting dynamically created combo boxes

Status
Not open for further replies.

toadstool13

Programmer
Jan 28, 2009
1
0
0
I can create dynamic ComboBoxes, but haven't been able to reset them (ActionScript CS3)

I believe reseting a "Component" Combobox is
ComboboxInstancename.setSelectedIndex(0);

But when I apply similar code for the dynamic Combobox
e.g.
addChild(myCappuccinoBox);
myCappuccinoBox.setSelectedIndex(0);

I get an error
“call to undefined method through a reference with static type fl.controls.ComboBox”.

Do I need to import additional e.g. I included
import fl.controls.ComboBox;
To activate the ComboBox?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top