Search code examples
androidactionscript-3flash

How to kill the softkeyboard from flash player


I needed a way to invoke softkeyboard in android platforms, and i got to know how to do it form here Flash APIs for Android Platform. Now i need to kill the keyboard, basically there is a button which i want to use to toggle the keyboard. Flash has provided a way to invoke the keyboard but not to kill it.(never understood how they work). One more issue is that when i click the down button on softkeyboard which is located on bottom left of the screen, the Softkeyboard_Deactivate event is not fired. It seems its fired only when the focus shifts from one object to another.

So what should be done ?


Solution

  • OK so it seems if you just set the "stage.focus = null" it will lower the keyboard. It came out of the blue to me to try this and worked like a charm.