1 Reply Latest reply on Mar 13, 2012 10:09 AM by JeffreyGong

    Air Android : how to close SoftKeyboard in a TextArea

    pol2095 Level 1

      Hello,

       

      When my TextArea setFocus() with as3, i want my Android SoftKeyboard close.

       

       

      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" width="260" height="480" creationComplete="comp(event)">
              <fx:Script>
               <![CDATA[
                public function comp (e:Event):void{
                          are.setFocus();

                          //SoftKeyboard close();
                }
                ]]>
               </fx:Script>
               <s:Panel title="undo" width="240" height="460" horizontalCenter="0" verticalCenter="0">
                          <s:TextArea id="are" width="200" height="50"/>
               </s:Panel>
      </s:Application>

       

      Thanks