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