# Sliders as navigation tool

**URL:** <https://forum.kirupa.com/t/sliders-as-navigation-tool/246316>\
**Category:** flash\
**Created:** [December 10, 2007, 1:56am UTC](https://forum.kirupa.com/t/sliders-as-navigation-tool/246316 "2007-12-10T01:56:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inspired78](https://avatars.discourse-cdn.com/v4/letter/i/9de0a6/32.png) [@inspired78](https://forum.kirupa.com/u/inspired78)\
**Post date:** [December 10, 2007, 1:56am UTC](https://forum.kirupa.com/t/sliders-as-navigation-tool/246316/1 "2007-12-10T01:56:00Z")

</div>

Hey,

Theres a slider code featured in one of the tutorials on this website which makes the animation increase in size as the slider moves up. Here’s the link: [http://www.kirupa.com/developer/mx/volume\_slider.htm](http://www.kirupa.com/developer/mx/volume_slider.htm) (I’ve eliminated the volume control).

I wanted to know if it’s possible to make it into a navigation tool where the user can navigate by pushing the sliders up to the top (once the sliders slide to the top, the page changes)???

Here’s the code:

this.ratio = 0;  
dragger.onPress = function() {  
//actions  
this.startDrag(true, 0, 0, line.\_width, 0);  
this.onEnterFrame = function() {  
ratio = Math.round(this.\_x\*100/line.\_width);  
\_root.volume = ratio;

};  
};  
dragger.onRelease = dragger.onreleaseOutside=stopDrag;
