5 Replies Latest reply on Nov 15, 2007 4:33 AM by Venian

    onKeyDown(key.ENTER) works locally but not uploaded on a server

    Venian Level 2
      Hi.

      I have the following code:

      this.passinput.onSetFocus = function() {
      };

      Key.removeListener(this.passinput);
      this.passinput.onKeyDown = function() {
      if (Key.isDown(Key.ENTER)) {
      loadVariablesNum("first_login.php", 0, "POST");
      _root.test_mc.gotoAndPlay(2);
      }
      };
      Key.addListener(this.passinput);

      The test_mc should go to the second frame where it is of another color. If i test it locally on my PC, it works but if I upload it to the web site and try then pressing enter no longer works.

      Has anyone any idea of how to fix this?

      Thank you.