Loader and combining variables

Hey,

  1. I’m wondering if there is a way to use the loader to load in a series of pictures from disk rather than URL. If so what is the code for this?

  2. Is there a way to combine variables to create one single variable. Again if so how can I do this?

I have included the code I am working on to give some clarity on what I’m trying to do.

var h:String = "http://img163.imageshack.us/img163/5961/pngjoust";
var p:String = ".png"
var q:String = new String

for (var i:Number = 1; i < 50; i++)
{
    var q = h, i, p;
}

var imageLoader:Loader = new Loader();
var image:URLRequest = new URLRequest(q);
imageLoader.load(image);
addChild(imageLoader);

The ‘URLRequest’ can only contain one argument hence why I need variables p, h and i to become one variable.

Any help would be ace :slight_smile:

Cheers!