-
Just as it sounds.. i wanna bind say A,B,C,D to certain functions but all flash offers me is Shift,Enter, arrow keys etc...
if anyone can help i would be most grateful
-
You need to use the keycodes ... A to Z = 65 to 90 (A=65, B=66, C=67, etc.), and 0 to 9 = 48 to 57 (0=48, 1=49, 2=50, etc.). Then just use the onClipEvent(keyDown) handler:
Code:
onClipEvent(keyDown){
if(Key.getCode == 65){
// do some actions
}
}
That will execute actions if the "A" key is pressed.
-
Owner of the ™ thread
you will find all the KEY CODES in the Help File Action Script Reference part . also for the extra keys like shift , capslock etc .
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|