# CS3/as2 slider issue - HELP!

**URL:** <https://forum.kirupa.com/t/cs3-as2-slider-issue-help/254822>\
**Category:** flash\
**Created:** [March 15, 2008, 8:35pm UTC](https://forum.kirupa.com/t/cs3-as2-slider-issue-help/254822 "2008-03-15T20:35:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bostondesign](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@bostondesign](https://forum.kirupa.com/u/bostondesign)\
**Post date:** [March 15, 2008, 8:35pm UTC](https://forum.kirupa.com/t/cs3-as2-slider-issue-help/254822/1 "2008-03-15T20:35:25Z")

</div>

So i made this slider, it works but the issue i have is that even when the mouse leaves the clip the clip is still outputting which slows down the entire movie. Anyone have any thoughts on how to stop the as from continuing when interacting with other parts of the site? Here is the code below any help would be great!

nob.\_x = slot.\_x;  
nob.\_y = slot.\_y;  
totalFrame = 6;

nob.onPress=function(){  
startDrag(nob,0,slot.\_x,slot.\_y,slot.\_width+slot.\_x-this.\_width,slot.\_y);  
}

nob.onRelease=function(){  
this.stopDrag();  
}

onEnterFrame=function(){  
fNum=int((nob.\_x-slot.\_x)/(slot.\_width-nob.\_width)\*(totalFrame+1))+2;  
trace(fNum);  
gotoAndStop(fNum);  
}

stop();
