ciao a tutti, ho un problema ho uno script per gestire il suono internamente in flash, il volume mi parte da 100 e vorrei che partisse da 50, come posso fare?, in piu' se possibile vorrei che la musica, una volta finita, ricominciasse, mi potete dare un mano?
ecco lo script
this.createTextField("volume_txt",10,992,737,200,2 0);
volume_mc.top = volume_mc._y;
volume_mc.bottom = volume_mc._y;
volume_mc.left = volume_mc._x;
volume_mc.right = volume_mc._x+100;
volume_mc._x += 100;
volume_mc.handle_btn.onPress = function() {
startDrag(this._parent, false, this._parent.left, this._parent.top, this._parent.right, this._parent.bottom);
};
volume_mc.handle_btn.onRelease = function() {
stopDrag();
var level:Number = Math.ceil(this._parent._x-this._parent.left);
this._parent._parent.song_sound.setVolume(level);
this._parent._parent.volume_txt.text = level;
};

Rispondi quotando
