Button Click to Animation to GotoURL

Alright so I have 5 buttons going across a page, and when i click on one, I want an animation to play that leads into the next page. I want this same animation to play whenever I click any of the buttons, but after the animation is done, I need the movie to go to different URLs.

Basically I need code for a button to play an animation, then go to a URL after the movie clip has finished playing.

Thanks in advance!