1 Reply Latest reply on Dec 3, 2008 9:07 PM by Devendran

    Can we substitute Key.isDown for onRelease?

    shintashi Level 1
      How do I give a string like this
      if(Key.isDown(Key.SHIFT)){

      this kind of function:
      icon1_mc.onRelease = function(){

      ???

      in other words, I want the Shift key (or other keys) to trigger an effect only when released. This would be especially helpful as I use numbers for sorting arrays etc. and key.isdown often causes the numbers to move in greater than 1 increments between clicks.