[Flashcoders] Problems with Key event

2007-03-21 Thread Johan Nyberg
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

Re: [Flashcoders] Problems with Key event

2007-03-21 Thread Jim Berkey
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

Re: [Flashcoders] Problems with Key event

2007-03-21 Thread Dave Mennenoh
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/ ___