SOLVED: [Flashcoders] AS3 - setting a combobox to display a selection matching a string variable

2008-09-18 Thread BOYD SPEER
Thanks guys! This was the correct solution: // three items in the combobox // the last item in the myprofile array contains the string var. for (i=0; i<3; i++) { var thematch = dialect.dialect.getItemAt(i); if (thematch.label==myprofile[myprofile.length-1]) { dialect.dialect.selectedIndex=

[Flashcoders] AS3 - setting a combobox to display a selection matching a string variable

2008-09-18 Thread BOYD SPEER
I need to cause a combobox to programmatically change to display a selection matching a string variable. I am using the following code without results... // three items in the combobox // the last item in the myprofile array contains the string var. for (i=0; i<3; i++) { if ((dialect.dialect.