Hi All
I am having trouble having counting Keystrokes. Here is my script. I want
the user to press the key only once otherwise
nothing. The book says that theKey, the keyPressed and the Keycode always
indicate the last key pressed. How do i get
over it.
global gKeyCount
on enterFrame me
gKeyCount = 0
end
on keyUp me
set gKeyCount = gKeyCount + 1
checkKey
end keyUp
on CheckKey me
if (the key = "c" or the key = "C") and gKeyCount = 1 then
sprite(17).blend = 100
else if(the key = "a" or the key = "A") and gKeyCountt = 1 then
sprite(18).blend = 100
else
pass
end if
end
thanks
ravi
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]