March 5th, 2003, 01: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, 04:51 PM
March 6th, 2003, 04: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";