3 Replies Latest reply: Apr 24, 2011 12:33 AM by ernamus RSS

    up and down key not functioning in i-mode html simulator II

    santu_ohm

      ActionScript Code:
      var navBtn:Object = new Object();
      navBtn.onKeyDown = function(success)
      {
        var code:Number = Key.getCode();
        //[U]if(code == 40) [/U]
        if(code ==9)
         {
          //this works for both up and down keys
         }
      }

      What I have is a navigation menu with up and down keys.I have to use 40 for down key press and 38 for up key press.When I do this,it works fine in adobe device central .But it doesn't work on i-mode html simulator.And when I do code ==9 as shown the up and down key works but it works for both up and down keys.
      So what should I do to make up and down keys work on i-mode html simulator II .All your help will be greatly appreciated.

      Further I have tried Key.getAscii() method also but it also works as above i.e works for numeric value 9.