What am I going to explain?
I'm going to explain how to load an external image from a URL and place it in your flash. If you have an image URL that will change every day, then the image in your flash will change every day. Don't worry this isn't complicated at all ;)
----------------------------------------
----------------------------------------
----------------------------------------
--------------------
Now let's start with the code!
For this code we need:
a Loader
and a URLRequest
We'll first start with making a loader:
var imageLoader:Loader = new Loader();
Note that imageLoader can have any name but you'll have to change it also in the rest of the code.
Afterwards we'll add an URL request by typing this in the actions window:
var image:URLRequest = new URLRequest ("http://img.ngfiles.com/emoticons/emote-1.gif");
Note that image and the URL can be customizable, but if you change the name of the URL request you'll have to change it in the rest of the code. Also the URL must have only an image, so not a site with a image, but only the image.
Now we want the loader to load the request, so we type this:
imageLoader.load(image);
And as last we add the loader with the request:
addChild (imageLoader);
When we the image is on the stage it'll have as default it's x and y values 0.
If you want to change it, you can do it like this:
imageLoader.x = 200;
imageLoader.y = 300;
Note you can choose what the x and y values are
----------------------------------------
----------------------------------------
----------------------------------------
--------------------
This is the complete code
var imageLoader:Loader = new Loader();
var image:URLRequest = new URLRequest("http://img.ngfiles.com/emoticons/emote-1.gif");
imageLoader.load(image);
addChild (imageLoader);
imageLoader.x = 200;
imageLoader.y = 300;
----------------------------------------
----------------------------------------
----------------------------------------
--------------------
If you discover a mistake or you're having problems, PM me or leave a comment here.