Skip to main content
Inspiring
June 2, 2021
Question

upload sound from external server

  • June 2, 2021
  • 1 reply
  • 204 views

Good Morning. I am trying to load an mp3 audio from a web server (specifically google drive). I do this. The url is the one with the most rights (editor):

 

 

var mySound:Sound = new Sound();
var req:URLRequest = new URLRequest("https://drive.google.com/file/d/1mlNVuWElTDpw4BpWmaiotfVkCl9r0tBk/view?usp=sharing");
mySound.load(req);
mySound.play();

 

the problem is that when debugging the movie it doesn't give an error and it doesn't do anything. I don't know if the fault is in the code or the Url that I use or if I have to change something in animate so that it can use files from an external server ...

I appreciate the help.

    This topic has been closed for replies.

    1 reply

    Inspiring
    June 2, 2021

    Solved. I needed download link