# as3.0 scrollbar

**URL:** <https://forum.kirupa.com/t/as3-0-scrollbar/317207>\
**Category:** flash\
**Created:** [December 13, 2010, 8:34pm UTC](https://forum.kirupa.com/t/as3-0-scrollbar/317207 "2010-12-13T20:34:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrzdzn](https://avatars.discourse-cdn.com/v4/letter/w/73ab20/32.png) [@wrzdzn](https://forum.kirupa.com/u/wrzdzn)\
**Post date:** [December 13, 2010, 8:34pm UTC](https://forum.kirupa.com/t/as3-0-scrollbar/317207/1 "2010-12-13T20:34:15Z")

</div>

I created a scroll bar with an ease but the problem I have is after you click  
once it doesn’t allow you to scroll much after the initial mouse down- only scrolls in small increments and eases to a stop. How would I make each click scroll like the first.  
I am no expert with code so any any help would be great.  
Time line code preferred.  
.fla attached

**my code**  
// move up  
function addENTER\_FRAME(event:MouseEvent):void {  
scroll\_mc.addEventListener(Event.ENTER\_FRAME, ease);  
}  
function removeENTER\_FRAME(event:MouseEvent):void {  
scroll\_mc.removeEventListener(Event.ENTER\_FRAME, ease);  
}  
ycoordUp\_btn.addEventListener(MouseEvent.MOUSE\_UP, removeENTER\_FRAME);  
ycoordUp\_btn.addEventListener(MouseEvent.MOUSE\_DOWN, addENTER\_FRAME);  
//easing  
function ease(event:Event):void{  
//y coordinates up  
scroll\_mc.y += (300-scroll\_mc.y)/30;  
}  
function addENTER\_FRAME1(event:MouseEvent):void {  
scroll\_mc.addEventListener(Event.ENTER\_FRAME, ease1);  
}  
function removeENTER\_FRAME1(event:MouseEvent):void {  
scroll\_mc.removeEventListener(Event.ENTER\_FRAME, ease1);  
}  
ycoordDown\_btn.addEventListener(MouseEvent.MOUSE\_UP, removeENTER\_FRAME1);  
ycoordDown\_btn.addEventListener(MouseEvent.MOUSE\_DOWN, addENTER\_FRAME1);  
//easing  
function ease1(event:Event):void{  
//y coordinates down  
scroll\_mc.y += (100-scroll\_mc.y)/30;

}
