0 Replies Latest reply on Oct 10, 2007 9:13 PM by DJ_Sick_Nick

    keyUp Problems

    DJ_Sick_Nick Level 1
      Here's my code (Comments describe my problem):

      onClipEvent (keyDown) {
      if (Key.isDown(71) and Key.isDown(Key.SPACE)) { // All this works fine
      this.gotoAndPlay(3);
      } else if (Key.isDown(71)) {
      this.gotoAndStop(2);
      }
      }
      onClipEvent (keyUp) {
      if (Key.getCode(71)) {
      this.gotoAndStop(1); // When space is released and G is still held down, it executes this anyways...
      }
      }

      Am I not supposed to use keyUp?