# Slidebars and movie clips

**URL:** <https://forum.kirupa.com/t/slidebars-and-movie-clips/35429>\
**Category:** Uncategorized\
**Created:** [November 13, 2003, 10:56pm UTC](https://forum.kirupa.com/t/slidebars-and-movie-clips/35429 "2003-11-13T22:56:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![drose429](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/drose429/32/202_2.png) [@drose429](https://forum.kirupa.com/u/drose429)\
**Post date:** [November 13, 2003, 10:56pm UTC](https://forum.kirupa.com/t/slidebars-and-movie-clips/35429/1 "2003-11-13T22:56:17Z")

</div>

I have been working on a simple idea for controlling the timeline of a movie clip with a slider, that is place on the root timeline. I have attached a simple fla that sort of works except. However there are two main problems. You have to return the slider to its start location to update the change of position and also I can only get it to work by looping over two frames.  
Dose anyone have any ideas.

Here is the code

fadeBox\_mc.onEnterFrame=function(){  
if(fade){  
this.nextFrame();  
}else{this.prevFrame()  
}  
};

slider = \_root.mySlider\_mc.Knob.\_x;  
onEnterFrame = function() {  
if (slider \> \_x){  
\_root.fade = true;  
}else{  
\_root.fade = false;

}  
};
