Hey everyone.. I'm really new to flash. I have a combo box and I am using the 'selectedIndex' property to give it a default value (a value that is at the first(0) index). Setting this property in my ActionScript does select the value in the dropdown but it does not add the selected value to the combo box's text area. How do you do this? Any selection I make has no affect on the text area.
Here is a sample of my code. The combo box list is populated fine. And the value is selected IN THE LIST. However, once you select a value in the list the combo box's list closes and nothing resides in the combo box's text field.
comboBoxData.insert(0, {data:1, label:"Show me something specific"});
for (i in animations) {
comboBoxData.push({data: i.uri ,label: "somevalue"});
}
comboBox.dataProvider = comboBoxData;
comboBox.selectedIndex = 0;
comboBox.text = comboBox.selectedIndex;
this._lockroot = true;
My solution is using AS 2.
Thanks!
-Nick