01-04-2013 01:01 PM
I have a couple popup screens in my app that have TextFields. They are setup to appear in the center of the screen when a user requests it, the problem is that while the group view is hidden and the textfields arent visible on screen the user can still give that textfield focus. This happens with Flex SDK 4.6.0, Air SDK 3.0.0. Original app was developed in Flex SDK 4.5.1 and Air SDK 2.0.0 and at no point did I see this kind of behaviour. Has anyone experienced this before? and are there any suggestions or fixes for this, looking for something simple and quick. Thanks!!!
Solved! Go to Solution.
01-04-2013 01:47 PM
How are you hiding your TextFields? Are you able to provide any code to demonstrate this? Are you doing a removeChild()?
Regards,
Dustin
01-04-2013 01:52 PM
The TextField is in a group, I set visibility to false to hide the group.
01-04-2013 01:53 PM
Instead of setting visibility have you tried add/remove child?
01-04-2013 01:54 PM
I havent tried it but it does seem like the only solution.
01-16-2013 03:12 PM
If I understand what you're trying to do, I might suggest changing the type of textfield it is in code at whatever point you need it to not be focused on using the following: instanceName.type =TextFieldType.INPUT;
Replacing 'INPUT' with whatever type you need to change it to. And reverting it back at whichever point you need it to be an input textfield again. instanceName.mouseEnabled = false; may also do the trick, but since its an input field, it may not.
Havent tested these - just thinking off the top of my head. Hope this helps.