# Loader and combining variables

**URL:** <https://forum.kirupa.com/t/loader-and-combining-variables/306397>\
**Category:** flash\
**Created:** [March 14, 2010, 6:45pm UTC](https://forum.kirupa.com/t/loader-and-combining-variables/306397 "2010-03-14T18:45:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ruke](https://avatars.discourse-cdn.com/v4/letter/r/a698b9/32.png) [@Ruke](https://forum.kirupa.com/u/Ruke)\
**Post date:** [March 14, 2010, 6:45pm UTC](https://forum.kirupa.com/t/loader-and-combining-variables/306397/1 "2010-03-14T18:45:32Z")

</div>

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.

```auto
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 🙂

Cheers!
