How to solve spam clicking on a button..?

ok… say i got this button… and when pressed… it will do a whole lot of executions of graphics using actionscript and it will take like 2 secs to finish the transition… but when the user kept on pressing or double clicking the button or b4 the transition even finish… my graphics will go out of hand… if its one single click at a time… it works fine…anyway to solve this…?