thx for the challenge billwatson. this is the code I got. tell me what I'm missing.
=================================
// Action script...
// [onClipEvent of sprite 4 in frame 1]
onClipEvent (load)
{
function refreshscrollbar2()
{
TextBox.scroll = resetOnNewFile ? 1 : Math.min(TextBox.maxscroll, TextBox.scroll);
scrollbar2._y = 0;
} // End of the function
function updatescrollbar2Pos()
{
scrollbar2._y = 161 / (TextBox.maxScroll - 1) * (TextBox.scroll - 1);
} // End of the function
this.loadVariables("scroller1.txt"

;
scrolling = 0;
frameCounter = 1;
speedFactor = 2;
numLines = 14;
resetOnNewFile = true;
origHeight = 194;
origX = scrollbar2._x;
refreshRate = 12;
refreshCounter = 0;
refreshlastMaxscroll = 0;
loaded = false;
refreshscrollbar2();
}
onClipEvent (enterFrame)
{
if (loaded)
{
if (refreshCounter % refreshRate == 0 && TextBox.maxscroll != refreshLastMaxScroll)
{
refreshscrollbar2();
refreshLastMaxScroll = TextBox.maxscroll;
refreshCounter = 0;
} // end if
refreshCounter++;
} // end if
if (frameCounter % speedFactor == 0)
{
if (scrolling == "up2" && TextBox.scroll < 1)
{
TextBox.scroll = TextBox.scroll--;
updatescrollbar2Pos();
}
else if (scrolling == "down2" && TextBox.scroll < TextBox.maxscroll)
{
TextBox.scroll = TextBox.scroll++;
updatescrollbar2Pos();
} // end if
frameCounter = 0;
} // end if
frameCounter++;
}
onClipEvent (mouseDown)
{
if (up2.hitTest(_root._xmouse, _root._ymouse))
{
scrolling = "up2";
frameCounter = speedFactor;
up2.gotoAndStop(2);
} // end if
if (down2.hitTest(_root._xmouse, _root._ymouse))
{
scrolling = "down2";
frameCounter = speedFactor;
down2.gotoAndStop(2);
} // end if
if (scrollbar2.hitTest(_root._xmouse, _root._ymouse))
{
scrollbar2.startDrag(0, origX, 161, origX);
scrolling = "scrollbar2";
scrollbar2.gotoAndStop(2);
} // end if
up2dateAfterEvent();
}
onClipEvent (mouseUp)
{
scrolling = 0;
up2.gotoAndStop(1);
down2.gotoAndStop(1);
scrollbar2.gotoAndStop(1);
stopDrag();
updateAfterEvent();
}
onClipEvent (mouseMove)
{
if (scrolling == "scrollbar2"

{
lineheight = 161 / (TextBox.maxScroll - 1);
TextBox.scroll = Math.round(scrollbar2._y / lineHeight + 1);
} // end if
updateAfterEvent();
}
onClipEvent (data)
{
loaded = true;
}
=============================
Looks like you're loading variables too... here the txt file...
=============================
textbox=matrix {matrixType:"box", x:dt._x, y:dt._y, w:dt._width, h:dt._height, r:Math.PI/2};
lineto(dt._x+dt._width, dt._y+dt._height);
lineto(dt._x, dt._y+dt._height);
lineto(dt._x, dt._y);
endFill();
here come
the real rubbish
now
will it scroll
hum de hum
and more rubbish
and more rubbishtextbox=matrix {matrixType:"box", x:dt._x, y:dt._y, w:dt._width, h:dt._height, r:Math.PI/2};
lineto(dt._x+dt._width, dt._y+dt._height);
lineto(dt._x, dt._y+dt._height);
lineto(dt._x, dt._y);
endFill();
here come
the real rubbish
now
will it scroll
hum de hum
and more rubbish
and more rubbish
===========================
thx