i got this script
mp3Player.prototype.setInitialVolume = function(x) {
var ref = this;
var tgt = x/100this.player.volumeHeight;
var vitgt = this.player.volumeBar._y-tgt;
this.sound.volumeI = x;
this.player.volumeNR.text = 100;
this.sound.setVolume(x);
this.volumeHandler.onEnterFrame = function() {
ref.player.volumeIndicator._y = vitgt-(vitgt-ref.player.volumeIndicator._y)/1.2;
ref.player.volumeBar._height = tgt-(tgt-ref.player.volumeBar._height)/1.2;
if (ref.player.volumeIndicator._y>vitgt-1 && ref.player.volumeIndicator._y<vitgt+1 && ref.player.volumeBar._height>tgt-1 && ref.player.volumeBar._height<tgt+1) {
delete this.onEnterFrame;
}
};
};
mp3Player.prototype.setVolumeDrag = function(x) {
if (x>100) {
x = 100;
}
if (x<0) {
x = 0;
}
var ref = this;
var tgt = x/100this.player.volumeHeight;
this.sound.volumeI = x;
this.sound.setVolume(x);
this.player.volumeNR.text = Math.round(x);
this.volumeHandler.onEnterFrame = function() {
ref.player.volumeBar._height = tgt-(tgt-ref.player.volumeBar._height)/1.2;
if (ref.player.volumeBar._height>tgt-1 && ref.player.volumeBar._height<tgt+1) {
delete this.onEnterFrame;
}
};
};
mp3Player.prototype.dragVolumeSlider = function() {
var ref = this;
var maxH = this.player.volumeHeight;
var vi = this.player.volumeIndicator;
var vb = this.player.volumeBar;
this.volumeSlideHandler.onEnterFrame = function() {
if (_root._ymouse>=vb._y-maxH-1 && _root._ymouse<=vb._y+1) {
vi._y = _root._ymouse;
ref.setVolumeDrag((vb._y-_root._ymouse)*100/maxH);
}
};
};
but this makes my volume bar verticle… how do i get it horizontal? i tried manya time but it dont work, thanks!