COMO PUEDO CARGAR UN SONIDO O MAS BIEN UN MP3 QUE ESTE EN MI SERVIDOR. ESTO, YA QUE MI WEB EN FLASH SE DEMORA DEMASIADO EN CARGAR, ESTO POR LLEVAR INSERTO ESTE ARCHIVO Y NO CARGARLO DESDE UN LUGAR DE MI SERVER.
COMO PUEDO HACER ESA CARGA?
GRACIAS!

| |||
![]() ESTIMADOS: COMO PUEDO CARGAR UN SONIDO O MAS BIEN UN MP3 QUE ESTE EN MI SERVIDOR. ESTO, YA QUE MI WEB EN FLASH SE DEMORA DEMASIADO EN CARGAR, ESTO POR LLEVAR INSERTO ESTE ARCHIVO Y NO CARGARLO DESDE UN LUGAR DE MI SERVER. COMO PUEDO HACER ESA CARGA? GRACIAS! ![]() |
| |||
Re: Cargar Sonido En Flash Este codigo use yo: carga tu mp3 y en el panel de salida te muestra algunos parametros para que tengas en cuenta que es lo que cargas, pero aun podria ser mas facil: Cita: Asi sin parametros: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(); Cita: Si aca cambias true por false, deja de reproducirse, tambien hara paremetros para controlar el new Sound; como start(); stop();var mi_sonido:Sound = new Sound(); mi_sonido.loadSound("Sonido/La ley del monte.mp3", true); Espero haberte ayudado, saludos... |