Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/10/2007, 16:21
eybel
 
Fecha de Ingreso: marzo-2007
Mensajes: 782
Antigüedad: 17 años, 1 mes
Puntos: 16
Re: attach sound algo simple...

Hola gracias!! estas en lo cierto, bueno yo ya resolvi este problema con este codigo:

Cita:

var mi_sonido:Sound = new Sound();
mi_sonido.onLoad = function(success:Boolean) {
var totalSeconds:Number = this.duration/1000;
trace(this.duration+" ms ("+Math.round(totalSeconds)+" seconds)");
var minutes:Number = Math.floor(totalSeconds/60);
var seconds = Math.floor(totalSeconds)%60;
if (seconds<10) {
seconds = "0"+seconds;
}
trace(minutes+":"+seconds);
};
mi_sonido.loadSound("Sonido/La ley del monte.mp3", true);
stop();
solucionado

Última edición por eybel; 09/10/2007 a las 17:04