Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I would like to make something in f

Status
Not open for further replies.

fireburner69

Programmer
Aug 22, 2002
108
GR
I would like to make something in flash that has a window that contains a text field!

But I want when the window open the focus to set on the text so the user may enter direct text.
I tried some with setFocus but nothing worked out!
Is there a way to make it?
 
You need to use:

Selection.setFocus(instanceNameOfYourTextField);

You also have to make sure your that your Flash movie has keyboard focus in order for this to work - the easiest way to do that is to have the user click a button of some description before the textfield section runs.
 
I use a button alright! but the focus does not stays on the text. I have managed to stay on the textfield only when I use keypress like "p" this way everything works fine! But I need this to be set automatic! I generate a movie clip and then I want the user direct to write into this text field!

Is there a way to make it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top