Scroller Tutorial from AS2 to AS3

I’ve searched for almost a whole week to get this thing converted, and I’m pretty sure I’m an idiot who has had the answers in front of her the whole time.

I found a great tutorial for a scrollbar that was exactly what I was looking for. I wanted something that didn’t have up or down buttons, had a thin line for the track, and a circular dragger. However, it was written in AS2. I’ve tried to convert it myself, but I’m a complete beginner, and I know nothing about AS3 code, or AS2 for that matter. So, I’ve managed to get the scroller icon to move, but it moves all over the screen & doesn’t stay put. It also doesn’t scroll. Help me!! (Thanks in advance… :geek: )

[FONT=Courier New]var scrollUpper:Number = 31.5;
var scrollLower:Number = 381.5;[/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]var textLower:Number = 40;
var textUpper:Number = -40;[/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]var scrollRange:Number = scrollLower - scrollUpper;
var textRange:Number = textLower - textUpper;[/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]function scroll() {
var moved:Number = scroller_mc.y - scrollUpper;
var pctMoved:Number = moved/scrollRange;
var textMove:Number = pctMoved*textRange;
text_mc.y = textLower - textMove;
}[/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]scroller_mc.buttonmode = false;
scroller_mc.addEventListener(MouseEvent.MOUSE_DOWN, dragScroller);
scroller_mc.addEventListener(MouseEvent.MOUSE_UP, dropScroller);[/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]function dragScroller(evt:MouseEvent):void {
scroller_mc.startDrag();
}[/FONT]
[FONT=Courier New][/FONT]
[FONT=Courier New]function dropScroller(evt:MouseEvent):void {
scroller_mc.stopDrag();
}[/FONT]