FORUMS: list search recent posts

Emergency help needed... Scrolling through a combobox...

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
luthervondude
Emergency help needed... Scrolling through a combobox...
on Mar 9, 2007 at 12:36:52 pm

I need to be able to start typing in a combo box and it scroll through the entries as I type.
For example, imagine I have the numbers 1-500 listed in my combo box. Typing 3 will take you to "3" then typing 1 will take you to "31" and typing 5 will take you to "315" Are there any third party components that will do this or a way I can code it to do this? This is a major hang up for us on a major project. Please Help!!!

Thanks,
Luther



Return to posts index

grafxflow
Re: Emergency help needed... Scrolling through a combobox...
on Mar 9, 2007 at 4:23:21 pm

Hi,

Wouldn't it be easier to base your list via an external file. Say xml or mysql?

grafxflow

grafx that flow!


Return to posts index

luthervondude
Re: Emergency help needed... Scrolling through a combobox...
on Mar 9, 2007 at 7:23:22 pm

I am. I am importing them to a combo box. Now I want to be able to begin typing in the box and it scroll through based on what I am typing.



Return to posts index


DaveTrep
Re: Emergency help needed... Scrolling through a combobox...
on Mar 12, 2007 at 5:06:26 pm

Hi

Have you tried using a listener to detect what is being typed into the combo box?

var cmbChange = new Object();
cmbChange.change = function(eventObj) {
trace ("cmb"+combo_cmb.text);
};
combo_cmb.addEventListener("change", cmbChange);

You can then search the .xml file for matching data and return the index number to find the corresponding entry in the combo control.

if the xml is extremely long this approach may be too slow but it is worth a try.

Hope this helps

Dave


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]