Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Enter key not generating a keyCode

Enthusiast ,
Aug 31, 2009 Aug 31, 2009

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?

TOPICS
ActionScript
664
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Aug 31, 2009 Aug 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...

Translate
LEGEND ,
Aug 31, 2009 Aug 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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Aug 31, 2009 Aug 31, 2009
LATEST

That did it ... thanks.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines