Hello,
I’ve followed the Kirupa Tutorial (http://www.kirupa.com/developer/mx/volume_slider.htm) - i was wondering if someone could tell me what i would need to do to the Action Script (below) in order to have it so the volume (slider) is set to max when loaded. So the music starts loud instead of muted. Really appreciate your help!
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;