March 5th, 2003, 02:31 PM
flash and keyboard keys
I'm very new to flash but am getting a good grasp of it freom the help i have received from here and other places.
I am wondering if i'm on a main movie and a certain key stroke are enter, if i can get it to do an action.
For example, if i press CTRL+Shift and F6 all at once, it will flash a light or something.
Is there any cool code to catch key strokes like that.
March 5th, 2003, 05:51 PM
March 6th, 2003, 05:49 AM
this is the code i came up with and it works:
if (key.isDown(Key.CONTROL) && key.isDown(Key.SHIFT))
if(Key.getCode() == 117)
txt = "Yeh";