Forum Moderators: open

Message Too Old, No Replies

Slider button help

Need a little help, please.

         

capulet_x

6:45 pm on Apr 22, 2007 (gmt 0)

10+ Year Member



Thank you for taking the time to look at this....

Below is the script I have on a slider in my movie. You click and drag as you would expect except that the slider continues to slide even if the mouse is not over it. I have to click again somewhere away from the slider in order to "escape the gravity" of the slider. Would somone mind looking at my script and let me know if you see something that I should change? It seems like it should work completely but I must be overlooking something. The slider should stop moving if Ithe mouse is not over it.

this.speeda = 0;
dragger.onPress=function(){
this.startDrag(true,0,0,line._width,0);
this.onEnterFrame=function(){
speeda=Math.round(this._x*5/line._width) ;
}
}
dragger.onRelease=dragger.onreleaseOutside=stopDrag;