Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conflict between .buttonMode and KeyboardEvent?

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
Hello,

I've made a game. But as soon as I enable buttonMode for my buttons ('play game', 'instructions', etc) it breaks my keyboard controls for the game.

Code:
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyIsDown);

Once I set btnPlay.buttonMode = true, the keyIsDown function is no longer fired.

Any ideas? Thanks.

frozenpeas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top