# Problem with scrollbar

**URL:** https://forum.kirupa.com/t/problem-with-scrollbar/176929
**Category:** Uncategorized
**Created:** [January 28, 2006, 3:28am UTC](https://forum.kirupa.com/t/problem-with-scrollbar/176929 "2006-01-28T03:28:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![nitostyle](https://avatars.discourse-cdn.com/v4/letter/n/4491bb/32.png) [@nitostyle](https://forum.kirupa.com/u/nitostyle)
#### Post date: [January 28, 2006, 3:28am UTC](https://forum.kirupa.com/t/problem-with-scrollbar/176929/1 "2006-01-28T03:28:58Z")

</div>

hello I’m itrying to make a scroll bar but its not working

this is the action script

targY = 0  
dragger.\_x = theMask.\_width  
dragger.onPress = function () {  
this  
startDrag (this,false,this.\_x,0,this.\_x,theMask.\_height - this.\_height)  
\_Error\_Reg\_1\_Read  
}  
dragger.onRelease = dragger.onReleaseOutside = function () {  
stopDrag()  
}  
theText.setMask(theMask)  
theText.onEnterFrame = function () {  
this  
this.\_y = this.\_y - ((this.\_y - targY) / 6)  
}

I’ve attached the fla file

[http://home.comcast.net/~nitostyle/scroll.fla](http://home.comcast.net/~nitostyle/scroll.fla)

can sometome tell me what I did wrong

thank you
