[flexcoders] Re: Clear user text after enter on TextInput (gumbo and/or moxie)

2009-06-15 Thread valdhor
Try... (event.target as TextInput).text = ; (event.target as TextInput).setFocus(); HTH Steve --- In flexcoders@yahoogroups.com, gwangdesign gwangdes...@... wrote: Hello, I have a TextInput, say, for user to type in to search something. After the user presses enter Key, I want the

[flexcoders] Re: Clear user text after enter on TextInput (gumbo and/or moxie)

2009-06-15 Thread gwangdesign
Try... (event.target as TextInput).text = ; (event.target as TextInput).setFocus(); Steve, Thanks for the lead. Unfortunately, it doesn't work, either for the Gumbo or Halo component. For mx:TextInput: The text never gets cleared out after user presses the enter key; For s:TextInput:

[flexcoders] Re: Clear user text after enter on TextInput (gumbo and/or moxie)

2009-06-15 Thread valdhor
This works for me (I am using Flex 3.3 with Flash Player 9.0.159) If this is not a player or Gumbo issue, I would look at other things happening after the enter event. What happens with a small test case? --- In flexcoders@yahoogroups.com, gwangdesign gwangdes...@... wrote: Try...

[flexcoders] Re: Clear user text after enter on TextInput (gumbo and/or moxie)

2009-06-15 Thread gwangdesign
--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: This works for me (I am using Flex 3.3 with Flash Player 9.0.159) If this is not a player or Gumbo issue, I would look at other things happening after the enter event. What happens with a small test case? Steve, Thanks

RE: [flexcoders] Re: Clear user text after enter on TextInput (gumbo and/or moxie)

2009-06-15 Thread Peter DeHaan
[mailto:flexcod...@yahoogroups.com] On Behalf Of gwangdesign Sent: Monday, June 15, 2009 1:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Clear user text after enter on TextInput (gumbo and/or moxie) --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com

[flexcoders] Re: Clear user text after enter on TextInput (gumbo and/or moxie)

2009-06-15 Thread gwangdesign
Please feel free to file bugs for either/both issues at http://bugs.adobe.com/flex/. Hi Peter, I filed a bug on spark textinput. Someone else has filed one on mx:TextInput (https://bugs.adobe.com/jira/browse/SDK-21617) and provided a workaround which is similar to the callLater one you

[flexcoders] Re: Clear user text after enter on TextInput (gumbo and/or moxie)

2009-06-14 Thread gwangdesign
BTW, I am not sure if this behavior is something expected from user experience point of view since I looked at Google, Yahoo! and Bing, all of them did the same thing: once you pressed enter, the search textinput lost focus. You would have to regain focus for the textinput to do another