Skip to main content
Inspiring
May 18, 2023 1:05 AM UTC
Answered

Upload image by URL.

Hello people good night! All good?

Is it possible to load an image hosted on websites, such as imgur, for example?

Briefly, add an image to the board according to the link.

If so, could you help me with a solution?

I thank!

This topic is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
May 18, 2023 2:20 AM UTC

var loader1:Loader = new Loader();

var urlR:URLRequest = new URLRequest(the url string to your image);

 

loader1.load(urlR);

addChild(loader1);

5 replies

kglad
Community Expert
Community Expert
May 18, 2023 1:07 AM UTC

as3 or js?

Translate
vvvverTAuthor
Inspiring
May 18, 2023 2:08 AM UTC

Hi, kglad!

ActionScript 3.

Translate
kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
May 18, 2023 2:20 AM UTC

var loader1:Loader = new Loader();

var urlR:URLRequest = new URLRequest(the url string to your image);

 

loader1.load(urlR);

addChild(loader1);

Translate