# Scrollbar touble

**URL:** <https://forum.kirupa.com/t/scrollbar-touble/116382>\
**Category:** Uncategorized\
**Created:** [July 17, 2004, 7:53am UTC](https://forum.kirupa.com/t/scrollbar-touble/116382 "2004-07-17T07:53:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![headznet](https://avatars.discourse-cdn.com/v4/letter/h/34f0e0/32.png) [@headznet](https://forum.kirupa.com/u/headznet)\
**Post date:** [July 17, 2004, 7:53am UTC](https://forum.kirupa.com/t/scrollbar-touble/116382/1 "2004-07-17T07:53:39Z")

</div>

I’m having trouble with my scroller only scrolling when it gets to the bottom of the path.

This is from the tut on this site [[color=#22229c]http://www.flashkit.com/tutorials/I…s-922/index.php[/color]](http://www.flashkit.com/tutorials/Interactivity/Simple_S-Alan_Wis-922/index.php). Here is the actionscript I have for each mc:

//textbox (height=300 width=250):  
onClipEvent (load) {  
loadVariables (“text.txt”, “”);  
}  
onClipEvent (enterFrame) {  
this.textbox.scroll = this.\_parent.slider.b;  
}

//slider (height=20 width=15):  
on (press) {  
startDrag (this, false, this.\_parent.path.\_x, this.\_parent.path.\_y+280, this.\_parent.path.\_x, this.\_parent.path.\_y);  
}  
on (release, releaseOutside) {  
stopDrag ();  
}  
onClipEvent (load) {  
setProperty (this, \_x, int (\_x));  
}

onClipEvent (enterFrame) {  
a = new Object ();  
a.y = this.\_y;  
a.x = this.\_x;  
this.\_parent.path.globalToLocal (a);  
b = int (a.y/(280/this.\_parent.newstext.textbox.maxscroll));  
}

//path (height=280 width=15):  
onClipEvent (load) {  
setProperty (this, \_x, this.\_parent.slider.\_x);  
setProperty (this, \_y, this.\_parent.slider.\_y);  
}
