Text input fields in flex do not work in full view

Hi everyone, I have a problem where, if my application is full-screen, I cannot click on any text input component, and I cannot enter any text in the fields. I tried to create text input fields at runtime, and I tried to create them on the canvas when in the gui design window in Flex Builder. however, both of them give the same results and do not allow me to select them and enter text. There are assumptions Regards Mark

+3
source share
3 answers

As you said in a comment (just writing this answer for anyone who stumbled upon this question), the keyboard turns off when you are in full screen mode.

This is due to security restrictions, because someone can create a swf that replaces some actions on your computer ... for example, displaying a desktop that has a dialog asking you to enter your live ID and password. There are probably many other sinister uses that adobe needs to avoid by disabling keyboard input. I am not afraid of this.

J

+4
source

If you use AIR instead of Flex, you can run it in full screen mode with full keyboard input enabled:

displayState Stage-StageDisplayState.FULL_SCREEN_INTERACTIVE , . ( SWF-, , ). , Escape.

http://help.adobe.com/en_US/AIR/1.5/devappshtml/WS5b3ccc516d4fbf351e63e3d118666ade46-7e06.html

+2
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;

this will do the above line of code is in action script 3 just add it to your code

+1
source

Source: https://habr.com/ru/post/1713433/


All Articles