Question
How do you disable repeat when key is down?
When you press a key on your keyboard and hold that key down
(the "A" key for example), after a second or so, it would start to
repeat (so you would get "AAAAAA..." depending on how long you hold
it down). This is really inconvenient for me in Flash and was
wondering if there is a way to disable this or stop this from
happening.
I have this code in a file:
stage.addEventListener(KeyboardEvent.KEY_DOWN, moveBox);
I only want the moveBox function to be executed once, but if a key is held down for longer it executes multiple times.
Thanks in advance for any help.
-Robert K.
I have this code in a file:
stage.addEventListener(KeyboardEvent.KEY_DOWN, moveBox);
I only want the moveBox function to be executed once, but if a key is held down for longer it executes multiple times.
Thanks in advance for any help.
-Robert K.
