Hi.
Thanks for the code.
The problem is in the MP3 URL. You should use a direct link to your MP3 file. This Google Drive links actually redirects to the actual MP3 file.
To get the progress bar working set its source property to the sound instance. Like this:
import fl.controls.ProgressBar;
var audio: Sound = new Sound();
var controlCarga: ProgressBar = new ProgressBar();
function onProgress(event: ProgressEvent): void
{
formato.text = "Load..." + Math.floor(event.bytesLoaded / 1024) + "/" + Math.floor(event.bytesTotal / 1024) + "KB";
}
function onComplete(e: Event): void
{
formato.text = "archivo cargado con éxito";
audio.play();
removeChild(controlCarga);
}
//audio.load(new URLRequest("https://drive.google.com/uc?id=10NdOk1E5gvyzbv98svIGo_bDY5Nea5ZZ&export=download"));
audio.load(new URLRequest("YOUR_DIRECT_URL_TO_YOUR_MP3_FILE.mp3"));
audio.addEventListener(Event.COMPLETE, onComplete);
audio.addEventListener(ProgressEvent.PROGRESS, onProgress);
controlCarga.source = audio;
controlCarga.width = 320;
controlCarga.move(50, 40);
addChild(controlCarga);
Regards,
JC