Playing forward and backward a movie clip

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