Skip to main content
November 22, 2015
Answered

Textfield focus at the start. How?

  • November 22, 2015
  • 1 reply
  • 468 views

Hello. In my project, the textfield is not visible by the user, the fact is that i have a textfield input and a textfield dynamic. When you type in the first textfield input , the text is duplicate in the second textfield dynamic. I would like, that when i launch my SWF (or EXE), i don't need to click in the textfield input to write in it. I want to launch the swf and i use directly my keyboard.

I don't find how to give the focus to the textfield input, at the start... every time, we need to click in the textfield, and after, we can write in it...

Is there a solution, please?

This topic has been closed for replies.
Correct answer nezarov

focus:

stage.focus = textFieldName;

unfocus:

stage.focus = null;

1 reply

nezarovCorrect answer
Inspiring
November 22, 2015

focus:

stage.focus = textFieldName;

unfocus:

stage.focus = null;

November 22, 2015

It works nezarov, thanks !!

Inspiring
November 22, 2015

You're welcome my friend.