Question on moving newTextField in display

Hello,

I am in the process of using a few newTextField objects in a scene and I plan on adjusting their position when the keyboard shows. I thought I had read somewhere that you cannot move these in a display? I just did a test by adding this object, inserting it to a display and used the transition.to so it would move up on the screen which it did. So will I be fine on doing this to adjust for the keyboard focus?

I tested this by coding in my windows simulator and installed on my Samsung Galaxy S4 phone.

Thanks,

Warren

I did some more testing and it seems to be doing what I want. I added an event listener to it and in the listener I did a transition.to each direction for when the keyboard shows and is then nil. If anyone has any questions about this I will be glad to help.

Warren

Hi Warren,

You can also take a look at newEditField from widgetstown.com - it handles automatically the keyboard sliding for editFields that are obstructed by the keyboard popping up

Cheers
Atanas

I did some more testing and it seems to be doing what I want. I added an event listener to it and in the listener I did a transition.to each direction for when the keyboard shows and is then nil. If anyone has any questions about this I will be glad to help.

Warren

Hi Warren,

You can also take a look at newEditField from widgetstown.com - it handles automatically the keyboard sliding for editFields that are obstructed by the keyboard popping up

Cheers
Atanas