# Kirupa's Slider Bar: Changing values?

**URL:** <https://forum.kirupa.com/t/kirupas-slider-bar-changing-values/253012>\
**Category:** flash\
**Created:** [February 26, 2008, 1:51pm UTC](https://forum.kirupa.com/t/kirupas-slider-bar-changing-values/253012 "2008-02-26T13:51:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DdigitalD](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@DdigitalD](https://forum.kirupa.com/u/DdigitalD)\
**Post date:** [February 26, 2008, 1:51pm UTC](https://forum.kirupa.com/t/kirupas-slider-bar-changing-values/253012/1 "2008-02-26T13:51:17Z")

</div>

Hi all,

I have a project that I’m trying to incorporate Kirupa’s slider bar into. I can’t seem to figure out how to control the value increments as the slider is dragged. I need it to probably go in increments of 1000. Can anyone help me out with this one?

Here’s the actionScript:

this.ratio=0 ;  
dragger.onPress=function(){  
this.startDrag(true,0,0,line.\_width,0);  
this.onEnterFrame=function(){  
ratio=Math.round(this.\_x) ;  
}  
}  
dragger.onRelease=dragger.onreleaseOutside=stopDrag;

Thanks!
