# Help with audio player

**URL:** <https://forum.kirupa.com/t/help-with-audio-player/75136>\
**Category:** flash\
**Created:** [January 6, 2005, 7:52am UTC](https://forum.kirupa.com/t/help-with-audio-player/75136 "2005-01-06T07:52:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbaughman](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@jbaughman](https://forum.kirupa.com/u/jbaughman)\
**Post date:** [January 6, 2005, 7:52am UTC](https://forum.kirupa.com/t/help-with-audio-player/75136/1 "2005-01-06T07:52:47Z")

</div>

I am using an audio player that I learned from a tut on this site. There’s one change I’d like to make. When the page loads, the slider (for the volume) is set at 0. I’d like it set at about 40 (not quite half volume).

I’ve pasted the code I used for the slider and the link to look at the finished product.

Any help would be greatly appreciated.

Jamie  
Actionscript for the slider:

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);  
\_root.volume = ratio;  
};  
};  
dragger.onRelease = dragger.onreleaseOutside=stopDrag;

link for the site

[http://64.226.7.185/newtiffany/tiff.html](http://64.226.7.185/newtiffany/tiff.html)
