Thanks a ton, Adrian. That worked....
This isn't working for me ..
It does set the focus to the combobox, but it doesn't highlight it light green like the other components.
Only components with editable text inputs show the border by default.
I was using a StringValidator on the combobox. If it's empty and if I set the focus on it, the border is colored red.
What do you mean by "....but it doesn't highlight it light green like the other components." ? I did not get that. Can you send a snapshot of it?
Thanks a lot for the rapid response.
@Deepak: Here is the snapshot with the green highlight - http://yfrog.com/1spantallazohj
This is when I hover the mouse over the button or if I tab to it. When I setfocus/showfocus to the combobox, it doesn't show that green halo.
@Flex harUI: you mention you can't get this by default if it's not an editable text input. Any way to change this default behaviour and apply it to this case? In fact, I wouldn't mind that default yellow rectangle.. except it also doesn't work for the combobox, only for the editable text input.
Could you please try below and let me know if this works for you? Use drawFocus() after setting focus.
Thanks & Regards,
no this doesn't work for me.
Although I just found a workaround. The only way I can highlight the combobox is murdering the focusManager with _root.focusManager.removeMovieClip();
I don't think this is the way it's supposed to be though, anyone can think of a proper solution?
Thanks and regards
If you look at the code for TextInput, you can see how it manipulates