How to read keyboard input?
(I just found this sub-forum...sorry about posting it in the main Flash/Actionscript forum...)
My program starts out this way:
Now I heard that any UIComponent registers keyDownHandler automatically, so you just need to override that function.
But although I get no errors, there is NO sign of life as far as keyboard input goes. I programmed the keys to do some drastic things (not shown below) but nothing ever happened. So I'm wondering what I'm doing wrong.
I'm not 100% sure but I've had the same problem, by default I think what the problem is unless you've used your mouse to click on that object that object won't detect the keyboard events. I noticed this when I first used a tilelist, then I noticed this when using a circle shape in AS3.
|All times are GMT +1. The time now is 06:18 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.