1 Reply Latest reply: Jun 25, 2010 7:03 AM by rishabhsrao RSS

    A tricky one - setsoftkeys changing when Textfield clicked!!??

    Captain_Planet

      Hi all.

       

      This issue is killing me (ok....not quite...but it's uncomfortable).  I use the code below to set my softkeys in my FL2.0, AS2.0 application.  It works like a charm......almost.  The trouble is when i click on (NOT hover over/focus on) an input box (Textfield) to enter some text, the softkey buttons change automatically to 'Options' and 'Back'!!???  How can i stop this from happening!!??  It's breaking my application functionality!!

       

      Thanks!!!

       

       

      Key.removeListener (keyListener);
      var keyListener:Object = new Object();
      keyListener.parent = this;
      keyListener.onKeyDown = function() {
      code = Key.getCode();
      if (code == ExtendedKey.SOFT1) {  // right soft key
        fscommand2("quit");
      }
      if (code == ExtendedKey.SOFT2) {  // right soft key
        _root.gotoAndStop(2);
      }
      }
      Key.addListener(keyListener);

        • 1. Re: A tricky one - setsoftkeys changing when Textfield clicked!!??
          rishabhsrao

          Hello,

           

          I tried the same thing and stumbled upon the same problem on my Nokia E63!

          I also added

           

          fscommand2("SetSoftkeys" , "Exit", "Frame2");

           

          Now, after clicking on the input text field to enter some text, when I pressed the Options soft-key, the Exit command gets executed!

           

          My suggestion is that you deploy your application fullscreen and create custom soft-key text labels.

          It's a crude but quick solution.

           

          Hope this helps!