(flash 8) AS question

how do you make it where if you push a button( as in a mortal kombat game when you attack) you cant push any other buttons until that part of animations has finished playing? plz answer asap. thx for any help