# Flash number slider 8-15

**URL:** <https://forum.kirupa.com/t/flash-number-slider-8-15/256537>\
**Category:** Uncategorized\
**Created:** [April 3, 2008, 10:01pm UTC](https://forum.kirupa.com/t/flash-number-slider-8-15/256537 "2008-04-03T22:01:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt82](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@matt82](https://forum.kirupa.com/u/matt82)\
**Post date:** [April 3, 2008, 10:01pm UTC](https://forum.kirupa.com/t/flash-number-slider-8-15/256537/1 "2008-04-03T22:01:17Z")

</div>

hi flash beginner here.

ive set up a number slider, but i need it to run from 8-15 as appossed from 1-100. i followed the tutorial on here, and altered the code to get it from one to eight.

here is the original code.

the slider and rail were placed in a movie clip with the instance name mySlider, within there there is a layer with this code:

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

then on the main timeline on a seperate layer there is this code:

this.onEnterFrame=function(){  
ratio.text=mySlider.ratio;  
}

i just want it to scroll from 8 to 15

thanks 🙂
