Skip to main content
Known Participant
December 9, 2012
Question

Softkeyboard not opening

  • December 9, 2012
  • 1 reply
  • 330 views

  Very new to this so I'm sure I  am going about this all wrong but I'm testing a real simple app on a samsung galaxy.  The softkeyboard doesn't open when i click in a text box while debugging.  Here is all the code :

txtA.addEventListener(FocusEvent.FOCUS_IN, textA)

txtB.addEventListener(FocusEvent.FOCUS_IN, textB)

btnOK.addEventListener(MouseEvent.CLICK, textC)

    function textA (evt:FocusEvent):void

    {

        txtA.needsSoftKeyboard = true;

        txtA.requestSoftKeyboard();

    }

   

    function textB (evt:FocusEvent):void

    {

        txtB.needsSoftKeyboard = true;

        txtB.requestSoftKeyboard();

    }

   

    function textC (evt:MouseEvent):void

    {

        var A:Number = Number(txtA.text);

        var B:Number = Number(txtB.text);

        var C:Number = A * B;

       

        txtC.text = String(C);

    }

This topic has been closed for replies.

1 reply

jhlawleyAuthor
Known Participant
December 9, 2012

Also, is it possible to specify that it only needs a numeric keyboard?