Slider that plays movieclip forward and backword

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.