Good day guys n' gals

I am creating a website with 5 buttons. Each one of them will have a small movie animation before going to the timeframe selected. Those transitions are different one from another.

How can I tell to the button to go to certain timeframe, do the animation and then go to the specific frame for the button??

Please help. Thank you all!