Skip to main content
Inspiring
January 6, 2012
Answered

disable keyboard numbers

  • January 6, 2012
  • 1 reply
  • 503 views

ok folks,

here's a wierd one. I have two sort of calculation aspects in a game. I have a calculator that I'm loading as an swf into my project, and I have a small app that is coded in the exercise that the user can enter numbers. Here's the thing, when I punch in numbers into my coded app, the numbers appear on the calculator (in the display). So I figure that when I hit a keyboard key, it goes to both aspects. I wish it'd only do the one present on the screen. So I have a few ways of thinking. Go into the code of the seperate calculator app and display keyboard input. Or find a way to only apply keystrokes to whatever is on the screen. Can either of these be done?

This topic has been closed for replies.
Correct answer kglad

you must have two listeners for keyboard input.  remove the one you don't want to use.

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
January 6, 2012

you must have two listeners for keyboard input.  remove the one you don't want to use.