Dynamic text with scrollbar

Page 2 of 2
Greg Meyer
This user is yet to take control of their account and provide a biography. If you are the author of this article, please contact us via support AT actionscript DOT org.
View all articles by Greg Meyerscrollboxtop = _root.scrollbar.scrollbox._y;
scrollboxbottom = _root.scrollbar.scrollbox._y + (_root.scrollbar.scrollbox._height) ;
if (textbox.Message.scroll=1) {
if (scrollboxmove >0) {
scrollboxmove = 0;
}
_root.scrollbar.scrollbox._y = -68;
} else if (scrollboxbottom - scrollboxmove > 70) {
if (scrollboxmove <0) {
scrollboxmove = 0;
}
_root.scrollbar.scrollbox._y = 70 - _root.scrollbar.scrollbox._height;
scrollboxmove = 0;
} else {
_root.textbox.Message.scroll = _root.textbox.Message.scroll + scrollboxmove;
}
Lyer 4 frame 2 actionscript :
stop ();
Lyer 1 has a MC "scrollbox" and in INSTANS window name is a "scrollbox". And inside of MC we have "scrollboxdrag" button.

Lyer 5 has a 2 arrowbuttons:
Action for Top button
on (press) {
if (_root.textbox.Message.scroll>1) {
_level0.dragpress = 1;
_level0.move = -1;
}
}
on (release) {
_level0.dragpress = 0;
_level0.move = 0;
}
Action for Bottom button
on (press) {
if (_root.textbox.Message.scroll<_root.textbox.Message.maxscroll) {
_level0.dragpress = 1;
_level0.move = 1;
}
}
on (release) {
_level0.dragpress = 0;
_level0.move = 0;
}

