in this tutorial i'll show you how to make keys only be used once each time they are pressed
you can see an example in super smash bros
ex: hitting the jump or attack button and holding it will show the action only once and otherwise
stay in neutral
ok so what you should do first is to add a new var in your onClipEvent (load) { statement
for my example i'm working with my jump key but you can do this for any key and you can name
it whatever you want it doesn't matter as long as you use the same name later
next in your if (Key.isDown("whatever your using it for"){
make sure that your doing this the right key.isDown if statement
what this is basically saying is when you press the key for the animation it checks to see if the
variable is false and if it is it will play the rest of the code
now for the part that allows you to actually be able to use the key again
make a new if statement
and what this is telling flash is when you aren't pressing down the key to make the variable false
thus making keys only work once when pressed
i hope this helps