# Need assistance with custom scrollbar I built

**URL:** <https://forum.kirupa.com/t/need-assistance-with-custom-scrollbar-i-built/171274>\
**Category:** Uncategorized\
**Created:** [December 3, 2005, 3:27pm UTC](https://forum.kirupa.com/t/need-assistance-with-custom-scrollbar-i-built/171274 "2005-12-03T15:27:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevs102](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@stevs102](https://forum.kirupa.com/u/stevs102)\
**Post date:** [December 3, 2005, 3:27pm UTC](https://forum.kirupa.com/t/need-assistance-with-custom-scrollbar-i-built/171274/1 "2005-12-03T15:27:44Z")

</div>

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 😉

I’d really appreciate some help.

```auto
 
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();
}
}

```
