|
|
|
|
Multiple Key Detection
Home » Flash » Actionscripting
If you frequent the Source/Experiments forum, chances are that you have run into Michael Avila's (MichalxxOA) experiments. This tutorial is based on Michael's Multiple Key Detection script, and by reading this tutorial, I hope you will learn not only how Michael created the multiple key detection functionality but also tips on how you can use it and modify it for your own projects.
Whenever you use keyboard shortcuts, you are holding and pressing several keys consecutively. Have you ever thought about how this functionality actually works? What causes your computer to realize that when you press the N key while holding down the Ctrl key, you meant to type Ctrl + N as opposed to each key separately?
While the answers to the above questions depend largely on the implementation of the multiple key detection, the overall idea behind them is the same - keep track of keys pressed and check whether the pressed keys map to a valid shortcut
|
More Tutorials by this user
|
|
|
|
|
|
|
|
|