Question : Actionscript 2.0 combo box

I hae a combo box with the following labels:
Don
Donald
Donny
Donna
Dragon

I want the user to be able to type so a search will be done on the labels listed
If the user types Donn it would highlight Donna. If they type Drag  it would hightlight Dragon
Thanks,

Don

Answer : Actionscript 2.0 combo box

Hi there.
how are you populating your datagrid? by using the component inspector?
if so first of all change it to use a dataprovider, this will make it easier to loop through the items.
I can't think of any way to loop through the items if populated by the inspector.

have a look here if you don't know how
http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00002639.html

then all you need to do is set up a input textfield and a button. when the button is pressed get what was typed, loop through the dataprovider and check if it matches.
if if matches, you'll have an index from the for loop and set the selectedIndex of your combobox to that value.
start there,and we can move on from there.
Random Solutions  
 
programming4us programming4us