Linking Animation to a button

How do i link an animation to a button. What i want is: when someone presses this button the animation starts, then at the end to the animation someone presses another button to make the animation go in reverse. Thank you in advance.

Select your button and open the actions panel (F9), insert this:[AS]on (release) {
gotoAndPlay(frameNumber);
}[/AS]Now just change “frameNumber” to wherever the animation starts. As far as making it play backwards… I don’t know if that’s possible, or maybe it is? :h:

Well what i was thinking is that my movies start with stop action so they are there but just aren’t playing. Is there a command that makes it go. Sorry if i am a little on clear. I try not to have more than one main frame. Thank you for your reply

The gotoAndPlay will make it play regardless of the stop action in that same frame.