View Full Version : Key.DELETEKEY does not work?

10-02-2003, 04:24 AM
I am trying using the Delete key....
But it did not work??
myListener = new Object();
myListener.onKeyDown = function ()
{ if (Key.isDown(Key.DELETEKEY))
{ trace ("hit")

I tried changing to key.SPACE and some others and it works..


10-02-2003, 04:57 AM
Howdy... ;)

Your script is valid... :)

Try to test it within the web browser after changing the trace() function some other visible way...

Or, set this option selected when you test your movie within the Flash...
Test Movie > Control > Disable Keyboard Shortcuts

And press the 'Delete' key to see your script working... ;)

Please use the proper code syntax to format the code.
Read this page (http://www.actionscript.org/forums/misc.php3?action=bbcode#buttons) to find out more about the tag information

10-02-2003, 05:20 AM
It works in the browser!!!

Thanx a lot!!!! :D