Re.Volume slider tutorial

Adjusting your volume-slider tutorial.

I would like the volumen to be higher than 0 when the swf is loaded, so that music can be heard without the need of dragging the volume…

I’ve tried to set the dragger in the middle of the slider but still the actual sound is 0 at start.

The code is as follows:
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;