Question
onKeyDown(key.ENTER) works locally but not uploaded on a server
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.
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.