5 Replies Latest reply: Aug 20, 2012 4:30 AM by Ned Murphy RSS

    How do I assign a keyboard event to a button?




      I am umbilical cord new to flash cs4 (as3) and I want to know how I can make a a keyboard event enable a button to be pressed. Specifically, I am making a soundboard in which you click on a button and a sound is played. I want to make it so when you press a SPECIFIC key on the keyboard, the button is pressed so then the sound is played.


      P.S. I would really just like a straightforward answer and possibly a code I could copy and paste.


      I am using Flash CS4 with Actionscript 3.0


      Thank you!