HowTo Kill ComboBox key selection

:crazy: Problem… :hangover:
I have a combobox and an input field in my flash MX scene. When I make a selection in the combobox and start typing in the textbox, the combobox starts changing value as soon as I type a corresponding first key…

So what my question is, can you disable the keyboard selection of a combobox so that you only can select it by using your mouse?

Thanks Guys/Girls!

If the FComboBox is changing the value, it’s because the focus is still on the FComboBox… once the focus is on the TextField, you shouldn’t have any problems.

To make sure that the focus is on the TextField, you can use the setFocus method of the Selection object.
[AS]Selection.setFocus(TextFieldInstanceName);[/AS]
http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary643.html

True… That’s a great solution… Sometimes things can be so easy!

Thanx Dude! I love this site!

Yeah, usually things are easy… :stuck_out_tongue:

You’re welcome. :wink: