Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Textfield focus at the start. How?

Guest
Nov 22, 2015 Nov 22, 2015

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?

TOPICS
ActionScript
424
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Nov 22, 2015 Nov 22, 2015

focus:

stage.focus = textFieldName;

unfocus:

stage.focus = null;

Translate
Enthusiast ,
Nov 22, 2015 Nov 22, 2015

focus:

stage.focus = textFieldName;

unfocus:

stage.focus = null;

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 22, 2015 Nov 22, 2015

It works nezarov, thanks !!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Nov 22, 2015 Nov 22, 2015
LATEST

You're welcome my friend.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines