# Slider that plays movieclip forward and backword

**URL:** https://forum.kirupa.com/t/slider-that-plays-movieclip-forward-and-backword/49173
**Category:** Uncategorized
**Created:** [April 20, 2004, 4:45pm UTC](https://forum.kirupa.com/t/slider-that-plays-movieclip-forward-and-backword/49173 "2004-04-20T16:45:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![massive3215](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/massive3215/32/253_2.png) [@massive3215](https://forum.kirupa.com/u/massive3215)
#### Post date: [April 20, 2004, 4:45pm UTC](https://forum.kirupa.com/t/slider-that-plays-movieclip-forward-and-backword/49173/1 "2004-04-20T16:45:59Z")

</div>

I have created a slider with the following code:

stop();  
//DRAGGER1 CODE  
dragger1\_mc.onPress = function() {  
//constrain dragger to line width  
this.startDrag(false, -950, this.\_y, line.\_width, this.\_y);  
};  
//release code  
dragger1\_mc.onRelease = dragger1\_mc.onreleaseOutside=stopDrag;

What code would I add to have a seperate movieclip play frame by frame based on where my slider is. Ex: My slider is on the far left, seperate movieclip is at end of its timeline. If I move the slider quickly back to the beginning the movieclip plays backwards quickly to its beginning and stops.
