Adobe Flash Coding Help?

Twizler

New member
I need help with a game I am trying to make (in AS2). What I want is a certain letter on the keyboard add 1 to the score. Right now in the actions on the main frame I have:
stop;
score=0
My text that shows the score is called scoreText and the "Var" is set to score. I can't seem to get any buttons on the keyboard to change the score, but I am able to make a button that you click add score (which I don't want). I have tried:
if(Key.isDown (81)) {
_root.score+=1;
}
That should make the letter 'q' add 1 to score, and then change the text of scoreText to whatever the score is, but for some reason won't work. Someone please help.
Thanks.
 
Back
Top