# Playing forward and backward a movie clip

**URL:** https://forum.kirupa.com/t/playing-forward-and-backward-a-movie-clip/159389
**Category:** flash
**Created:** [August 17, 2005, 4:01am UTC](https://forum.kirupa.com/t/playing-forward-and-backward-a-movie-clip/159389 "2005-08-17T04:01:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Alleycat](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/alleycat/32/1655_2.png) [@Alleycat](https://forum.kirupa.com/u/Alleycat)
#### Post date: [August 17, 2005, 4:01am UTC](https://forum.kirupa.com/t/playing-forward-and-backward-a-movie-clip/159389/1 "2005-08-17T04:01:13Z")

</div>

Hello friends, I was hoping someone could enlighten me on this.

I have a movie clip and some buttons on the stage. Depending on the button I press, the movie clip will either have the frames moving forward or backward.

Let me illustrate :

Movie Clip : total 30 frames  
6 buttons (A, B, C, D, E,F)  
Actionscript : Stop() at frames 5,10,15,20,25,30

If frame is at 1 : will move to frame 5.

At frame 5 :  
Button A does nothing  
Button B moves movieclip to frame 10  
Button C moves movieclip to frame 15  
Button D moves movieclip to frame 20  
Button E moves movieclip to frame 25  
Button F moves movieclip to frame 30

At frame 10 :  
Button A moves movieclip backwards to frame 5  
Button B does nothing  
Button C moves movieclip to frame 15  
Button D moves movieclip to frame 20  
Button E moves movieclip to frame 25  
Button F moves movieclip to frame 30

At frame 15 :  
Button A moves movieclip backwards to frame 5  
Button B moves movieclip backwards to frame 10  
Button C does nothing  
Button D moves movieclip to frame 20  
Button E moves movieclip to frame 25  
Button F moves movieclip to frame 30

etc etc… you get the idea

Can anyone please detail out how this is possibly done ?

Thank you very much for your kind assistance
