1 Reply Latest reply on Jan 12, 2007 12:27 AM by Devendran

    Disable Key Repeat

    IT_Support
      Is there a way in Flash of disabling or detecting key repeat, ie that a key is being presses as a result of it being held down rather than it actually being pushed.

      Programatically doing this by waiting for a key up slows down the rate at which you can press keys.
        • 1. Re: Disable Key Repeat
          Devendran Level 1
          Instead of KeyDown you can use onKeyUp Listener
          Like this
          var myListener:Object = new Object();
          myListener.onKeyUp = function () {
          trace ("You released a key.");
          }
          Key.addListener(myListener);

          if you want to eliminate the Multiple check of onkeyDown u can use the following way
          Just use a Flag Variable, And set When Key Pressed. Do Your Restriction using that.