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

Animate ActionScript 3.0 does not recognize key presses when testing, or published. Game.

New Here ,
Nov 02, 2021 Nov 02, 2021

Copy link to clipboard

Copied

I am going through a book tutorial on creating games in Flash/Animate, and the game is using keyboard key presses (arrow keys, spacebar) to control game elements. When I test the game, and also when I publish the game in .swf and windows exe format. The keys do nothing. This used to work years ago when I went through these examples previously, but now they aren't. I've looked through some troubleshooting sources, and I see a lot of references to something like "when testing the game, go to "Control/Disable Keyboard Shortcuts" because apparently, the testing environment is using keyboard shortcuts and has priority. However, in the current versions (2021, 2022) of Animate, I don't see anywhere where I can tell it to disable keyboard shortcuts for the test environment. Is there anyone that knows what to do about this now in the current software?

P.S., I'm not using Flash Builder, or any other ActionScript coding apps. It's all done in Animate.

Thanks.

 

You need to ask program questions in the forum for the program you are using
To ask in the forum for your program please start at https://community.adobe.com/
Moving from Using the Community (which is about the forums) to the correct forum... Mod

TOPICS
How to

Views

75

Translate

Translate

Report

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
New Here ,
Nov 02, 2021 Nov 02, 2021

Copy link to clipboard

Copied

LATEST

Update. I did a test, and further discovered that the key presses, do in fact work, but you have to mouseclick on the item first to give it the focus. Then the keystrokes will work. Even though the coding mentions the specific instance name or the Symbol.

Votes

Translate

Translate

Report

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