CS3/as2 slider issue - HELP!

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();