
Search Our Site

Forum
Welcome, Guest
KeyboardEvent not working for all keys in Flash
by
pooja
on 05/16/2010 14:58
While using keyboard events we come across a problem that the the keyboard event only get triggered for certain keys.. while for the other keys it does not work at all. Some of the keys that it works for fine are u,s,x,d and the number keys.
This actually happens only in the test movie mode.. when we are testing our movie in the flash environment. When running the SWF outside Flash in the standalone player or browser, it will successfully capture all keystrokes. The reason for this is (as per my understanding) that flash overrides certain key captures for its own tool shortcuts.
But the good news is that we have a simple fix for it.
In your test movie, simply go to Control > Disable Keyboard Shortcuts.
