Alguien tiene una idea de como resolver eso?. Desde ya muchas gracias */
var som:Sound = new Sound();
som.load( new URLRequest( "musica.mp3" ));
som.addEventListener(ProgressEvent.PROGRESS, onLoadProgress);
som.addEventListener( Event.COMPLETE , onSoundLoaded );
function onLoadProgress(event:ProgressEvent):void
{
var loadedPct:uint = Math.round(100 * (event.bytesLoaded / event.bytesTotal));
trace("La música está " + loadedPct + "% cargada.");
txtPorcentaje.text = loadedPct.toString();
}
function onSoundLoaded([color=blue]event:Event):void
{
var localSound:Sound = event.target as Sound;
localSound.play();
}
