Need assistance with custom scrollbar I built

I built a very simple scrollbar all on my own. I know there is lots of scrollbars in these formus but honestly wanted to see if I could make one by myself.

Well I did but I notice it’s a bit skipy, not as smooth as others I’ve seen & was hoping for some insight.

This code resides directly on the dragger movieclip. The percent (this._y/195) I got from their being a possible 195 y position…not sure why, got it to finally work :wink:

I’d really appreciate some help.

  
onClipEvent(enterFrame){
 percent = (this._y / 195);
 _parent._parent.bioTxt.scroll = _parent._parent.bioTxt.maxscroll * percent;
 this.onPress = function(){
  startDrag(this,false,-18,-10,-18,195);
  this.onMouseMove = function(){
  updateAfterEvent();
 }
 this.onMouseMove();
 }
 this.onRelease = function(){
  stopDrag();
 }
}