Skip to main content
Inspiring
May 18, 2023
Answered

Upload image by URL.

  • May 18, 2023
  • 1 reply
  • 676 views

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 has been closed for replies.
Correct answer kglad

var loader1:Loader = new Loader();

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

 

loader1.load(urlR);

addChild(loader1);

1 reply

kglad
Community Expert
Community Expert
May 18, 2023

as3 or js?

vvvverTAuthor
Inspiring
May 18, 2023

Hi, kglad!

ActionScript 3.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
May 18, 2023

var loader1:Loader = new Loader();

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

 

loader1.load(urlR);

addChild(loader1);