Skip to main content
AttaBoy2
Inspiring
August 31, 2009
Answered

Enter key not generating a keyCode

  • August 31, 2009
  • 1 reply
  • 734 views

this line of code is generating codes for other keys but not the Enter Key

trace("key code: : " + e.keyCode);

It's like AS3 doesn't know there is such a key.  The code should be 13 but on my system according to AS3 it doesn't exist.  I'm usind CS4 is this a CS4 bug?

This topic has been closed for replies.
Correct answer Rothrock

I'm sure you are doing this in the testing environment since trace doesn't work outside of there...

Have you gone up  to the menu and "disabled keyboard shortcuts"? If you don't then the Flash authoring environment will actually catch the key presses which have functionality and not pass them through to the swf.

If you have done that then I'm at a loss...

1 reply

RothrockCorrect answer
Inspiring
August 31, 2009

I'm sure you are doing this in the testing environment since trace doesn't work outside of there...

Have you gone up  to the menu and "disabled keyboard shortcuts"? If you don't then the Flash authoring environment will actually catch the key presses which have functionality and not pass them through to the swf.

If you have done that then I'm at a loss...

AttaBoy2
AttaBoy2Author
Inspiring
August 31, 2009

That did it ... thanks.