Stupid Actionscript 3.0 question: Keypress AND click for a function?

Posted by tara on Stack Overflow See other posts from Stack Overflow or by tara
Published on 2010-04-12T21:26:43Z Indexed on 2010/04/12 22:52 UTC
Read the original article Hit count: 361

I know how to make the mouse event work. I know how to make the keypress event work. Now what I can't figure out is how to make one button respond to both keypress and/or mousevent. In other words, a button that you can click or press "enter" for it to work.

This seems really basic but on googling all I can find is basic "how to do a keypress" stuff.

© Stack Overflow or respective owner

Related posts about actionscript

Related posts about keypress