View unanswered posts | View active topics


Post a new topicPost a reply
Previous topic | Next topic 

  Beginner BeginnerMember since: 06.08.2012, 13:15Posts: 3 Likes: 0
 

 Post Topic: UI Input doesn't work with Text Fields
PostPosted 06.08.2012, 13:25 
Hello!

I am creating a simple Flash menu with input text fields. I set all input parameters in UI node "UI:Display:Config", but still my text field input only catches Enter, backspace, del, tab, but not letter or number keys. I've tried everything, even made a key listener, and it proved me that Scaleform inside engine somehow doesn't let me catch an input.

Somehow, inside a main menu, when connecting to server, text fields are working properly.

P.S. Outside the engine, in flash player, everything works fine.

  Beginner BeginnerMember since: 06.08.2012, 13:15Posts: 3 Likes: 0
 

 Post Topic: Re: UI Input doesn't work with Text Fields
PostPosted 06.08.2012, 18:31 
Please, somebody, help.
User avatar   News Posters News PostersMember since: 04.12.2007, 03:23Posts: 11605Location: Hamar, Norway Likes: 691
 

 Post Topic: Re: UI Input doesn't work with Text Fields
PostPosted 06.08.2012, 19:09 
Please allow 24 hours before bumping your own thread.


 
 
 

Image
User avatar   Experienced Modder Experienced ModderMember since: 21.10.2009, 19:52Posts: 545Location: Slovakia, EU Likes: 6
 

 Post Topic: Re: UI Input doesn't work with Text Fields
PostPosted 11.08.2012, 00:35 
Did you allowed a keyevents in uielement? Also did u embedded a font in your text input field?


Image
C++ || C# || 3D Artist || 2D Artist || UI Artist || Animator
  Beginner BeginnerMember since: 04.11.2010, 11:34Posts: 8 Likes: 5
 

 Post Topic: Re: UI Input doesn't work with Text Fields
PostPosted 17.09.2012, 12:10 
There is some additional thing you have to do in actionscript: on textfiled selection you have to explicit call in your AS:

Selection.setFocus(_root.path.to.your.textfiledMC);

e.g. in your onRollOver function

Cheers
  24/7 Modder 24/7 ModderMember since: 23.03.2007, 14:08Posts: 3023 Likes: 21
 

 Post Topic: Re: UI Input doesn't work with Text Fields
PostPosted 17.09.2012, 13:49 
Image
thx
User avatar   Trained Modder Trained ModderMember since: 20.08.2011, 05:40Posts: 204 Likes: 6
 

 Post Topic: Re: UI Input doesn't work with Text Fields
PostPosted 18.09.2012, 05:36 
Quote by Cry-Paul:
There is some additional thing you have to do in actionscript: on textfiled selection you have to explicit call in your AS:

Selection.setFocus(_root.path.to.your.textfiledMC);

e.g. in your onRollOver function

Cheers


I have a flowgraph that calls a function in AS, which makes my text input visible and sets focus to the text field. Everything else in the function works but the snippet above does not. I still have to manually click my text input field to get it to start retrieving input. Any ideas?

Do i set focus to the movieclip holding my textinput, or to the textinput itself.
User avatar   News Posters News PostersMember since: 04.12.2007, 03:23Posts: 11605Location: Hamar, Norway Likes: 691
 

 Post Topic: Re: UI Input doesn't work with Text Fields
PostPosted 18.09.2012, 18:17 
Use the textfield Movie Clip as described in Paul's post.


 
 
 

Image
  Beginner BeginnerMember since: 12.01.2012, 22:15Posts: 25 Likes: 2
 

 Post Topic: Re: UI Input doesn't work with Text Fields
PostPosted 19.09.2012, 16:05 
Also make sure you check in Launcher and Editor, ive seen it before that text doesnt show up in the editor but it does in the launcher.