1 Reply Latest reply on Jul 31, 2007 1:14 PM by kglad

    Can't remove Key listeners AS2

    gilesrulz
      I have been having the worst time getting these key listeners to go away! Any help would be greatly appreciated. Please see attached code. I even tried putting the remove listener on the next frame, and that didn't work either.

      tabPress.onKeyDown = function() {
      if (Key.isDown(Key.TAB)) {
      if (fName_txt.text.toLowerCase() == "allison") {
      gotoAndPlay("Slide_83");
      Key.removeListener(tabPress);
      }
      }
      };
      Key.addListener(tabPress);