Action Script help


Here is the Scenario. If someone can make this into a tutorial would be grateful

What I am trying to do. Click on a button and it plays its little animation. Now when you click on another button it plays the 1st buttons animation(ending animation) THAN IT GOES TO THE OTHER BUTTON and plays its animation.