For some reason this code doesn't capture all keyboard keys as expected:
var keyListener:Object = new Object();
keyListener.onKeyDown = keyPressed;
Key.addListener(keyListener);
function keyPressed():Void {
trace(foo);
}
All letters and numbers work. Insert and Shift works.. But not
var keyListener:Object = new Object();
keyListener.onKeyDown = keyPressed;
Key.addListener(keyListener);
function keyPressed():Void {
trace(foo);
}
All letters and numbers work. Insert and Shift works.. But not Delete,
Home, End, PageUp, PageDown, Enter, etc..
What am I doing wrong???
I
Have you disabled shortucts? When you test the SWF - go to control
disable... I trap delete and such that way.
Dave -
Head Developer
www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/
___
3 matches
Mail list logo