Much gratitude for your mp3 player tutorial! I've designed my player with a rotating volume knob, rather than a slider - any chance you could show me how to change the slider code to a rotating knob?
Thanks again!
boogooloo1
Posted 21 July 2006 - 12:49 AM
Posted 21 July 2006 - 05:29 PM
Edited by boogooloo1, 21 July 2006 - 05:29 PM.
Posted 21 July 2006 - 08:35 PM
this.onEnterFrame = function() {
var p = Math.floor((100+rotbutton._rotation/maxRotAngle*100)/2);
this._parent._parent.sound_mc.sound_obj.setVolume(p);
Edited by funkysoul, 21 July 2006 - 08:35 PM.
Posted 21 July 2006 - 08:58 PM
Posted 21 July 2006 - 11:02 PM
Posted 22 July 2006 - 06:37 AM
Posted 22 July 2006 - 10:15 AM
Posted 24 July 2006 - 06:59 AM
this._parent.volume1.dragger.onPress = function() {
startDrag(this, true, 0, this._y, this._parent.volBG._width, this._y);
_root.toolTip._visible = true;
setInterval(draggableTip, 100);
function draggableTip() {
_root.toolTip._x = _root._xmouse;
}
this.onEnterFrame = function() {
var p = (this._x/this._parent.volBG._width)*100;
this._parent._parent.sound_mc.sound_obj.setVolume(p);
};
};
this._parent.volume1.dragger.onRelease = function() {
delete this.onEnterFrame;
stopDrag();
};
this._parent.volume1.dragger.onReleaseOutside = function() {
_root.toolTip._visible = false;
stopDrag();
}; also don't forget to remove the volumebar graphs this.sound_obj.setVolume(50);set the starting volume at 50 or whatever you like.
onClipEvent(load){
maxRotAngle = 120;
}
onClipEvent(enterFrame){
if (rotbutton.dorotate) {
_root.sound_mc.sound_obj.setVolume(Math.floor((100+this.rotbutton._rotation/maxRotAngle*100)/2));
}
}
Edited by funkysoul, 24 July 2006 - 06:59 AM.
Posted 24 July 2006 - 07:23 AM
0 members, 1 guests, 0 anonymous users