Copy link to clipboard
Copied
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?
1 Correct answer
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...
Copy link to clipboard
Copied
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...
Copy link to clipboard
Copied
That did it ... thanks.

