Ver Mensaje Individual
  #6 (permalink)  
Antiguo 15/12/2005, 09:32
Avatar de Mauri1
Mauri1
 
Fecha de Ingreso: noviembre-2002
Ubicación: Santiago de Chile
Mensajes: 558
Antigüedad: 21 años, 5 meses
Puntos: 0
Hola.

Esto por si quieres aumentar o disminuir progresivamente el volumen

Código:
i = 0;
function progreso() {
 _root.onEnterFrame = function() {
  if (i != 100) {
   i++;
  } else {
   i = 100;
  }
  song.setVolume(i);
 };
}
function progreso2() {
 _root.onEnterFrame = function() {
  if (i != 0) {
   i--;
  } else {
   i = 0;
  }
  song.setVolume(i);
 };
}
btn.onRelease = function() {
 progreso();
};
btn2.onRelease = function() {
 progreso2();
};
Tienes que trabajar con 2 botones, con nombres de instancia btn y btn2