PDA

View Full Version : fly text input


finecur
03-02-2008, 06:18 AM
Hi everyone:

I have a question and I think it should be easy to do. But I did not get anyting after searching the web for a few hours. I hope you guys can help me.

Here is what I want to do. I have a web app and there is a small Google logo in it. Once my user clicks the logo, I will pop up a small window just like the Alert.show window but with a input text control. The window says "Please input your search key words". My user inputs his key works in the input text control and press "return" key. The pop up window disappears and my app will start searching google. I do not know how I can pop up the window with a text filed and a input text control. Is there a easy way to do this? Since this is a pretty common usuage so I think there may be something ready...

thanks,

ff

anandm
03-02-2008, 06:48 AM
I believe that no such default control exist for your requirements. However it is very easy to develop a control for the requirement. Create a custom Panel(or any Control) with a text box and the required functionality. Pop up the control like Alert using PopupManager. Please take a look at http://livedocs.adobe.com/flex/2/langref/mx/managers/PopUpManager.html

Anand