Custom Made Scrollbar

I know there are lots of posts but I want to make a simple custom scrollbar for a text field.

I know I can make a couple of buttons with the following code:

  
Upward Button
on(press)
{
upint=setInterval(scrup,100);
}

on(release)
{
clearInterval(upint);
}

Downward Button
on(press)
{
downint=setInterval(scrdown,100);
}

on(release)
{
clearInterval(downint);
}



But how do I make a dragger?