Dynamic Variable Name

Suppose I want to dyanamically load 10 jpeg thumbnails. I have given them files names “image0.jpg”, “image1.jpg”, “image2.jpg”, image3.jpg" and so on.

Now, I might write out the code to do it ten times, like this:

var image0:loader = new Loader ();
image0.load(new URLRequest ("images/image0.jpg);

var image1:loader = new Loader ();
image1.load(new URLRequest (“images/image1.jpg”);

…yawn

But it would be much better if I could write out it out in a loop, and have the actionScript assign names to the variables. I don’t know actionscript so well, but I feel I want to have something like this:

var [name+i] :loader = new Loader();
[name+i].load(new URLRequest (“images/”+[name+i]+".jpg");

Now I’ve just made that code up, but there is some logic in it, which I hope makes my question clearer.

I might be going entirely the wrong way about it all…