First you have to get to the textinput. You have a few options: 1. The cleanest way is to extend the combobox and access the protected textInput variable. 2. You could cycle through all of the children and check if (child is TextInput).
Once you have the textinput, you can call mx_internal::getTextField() on textInput to get the textfield. Setting the selected property to 0,0 may leave the textbox with a caret at 0 index. If you don't want this, you want want to consider setting textfield.selectable = false instead (although I'm not 100% sure that will work either). Alternatively, you might be able to skip all this if you can simply set focus to another object (exactly how to do this depends a lot on your program). Also, you could toggle editable along with enabled which may also achieve the desired effect depending on exactly what you are looking for. - Dan On 12/5/06, Bjorn Schultheiss <[EMAIL PROTECTED]> wrote:
Thanks John, I currently am using a 'prompt' on my combobox as well. I'm making my changes on a handler listening to the close event. Here's perhaps a more detailed explanation of my problem from another previous email. Hopefully this question has a simple answer, though i haven't found one yet. When switching a combobox from editable == true to false, if the text was previously selected while editable == true, the selection is maintained when editable = false. Basically i want to remove the selection. Something like; combobox_instance.editable = false; combobox_instance.'?currentTextField?'.setSelection(0,0); btw, this is not within a subclass of combobox. Regards, Bjorn On 06/12/2006, at 1:55 PM, jlentz2112 wrote: Try setting the combobox.selectedIndex to -1 to make it use the prompt value. I set prompt= "" , then when I set combobox.selectedIndex to -1, it clears the field. John --- In [EMAIL PROTECTED] <flexcoders%40yahoogroups.com>ups.com, " bjorn.schultheiss" <[EMAIL PROTECTED]> wrote: > > Hey, > > I need to remove the selection on the TextField within a ComboxBox. > > This is happening when i'm switching combobox.editable == true to = false. > > How can i access the textfield? > > Bjorn >

