From: pandxsg on
Hi all,

I'm quite a newbie in Flash, and more so in components.

Currently, I'm working on a project that works in this way: I've got a combo
box with 5 items, and a list with 10 items. The combo box works like a filter
and when selected on an item, the list should only show items pertaining to the
selection. For eg, my 5 items in the combo box are the alphabets A,B,C,D,E. My
50 items in the list are some country names. So when "C" in the combo box is
selected, the list should display countries starting with C, like Canada,
China, and so on..

Let's say my indexes for C in the list are 10-15, is it possible to hide items
with index 0-9, and 16-49? I tried searching but it seems there isn't a
show/hide function for list components.

From: NedWebs on
What you can probably do is rewrite the list each time a combo box selection is
made. Have the full list as an array, so that when a combo box selection is
made, its change function clears the list and then rewrites it based on
matching the combo box label to the first character of each array element.