toadstool13
Programmer
- Jan 28, 2009
- 1
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?
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?