Concatenate varName

I want to increment a variable name within a loop so that the values in the loaded vars are added dynamically.
See below, inside setProperty() i want to add the value of i to the varNames siteX and siteY
so siteX + i would now become siteX1, siteX2 etc
// dummy coords to test
var siteX1 = “264”;
var siteY1 = “183”;
var siteX2 = “206”;
var siteY2 = “99”;
//
amount = 2;
//
while (amount>0) {
duplicateMovieClip (_root.BaseSite, “NewSite”+i, i);
// postion them using the passed co-Ords
setProperty (“NewSite”+i, _x, siteX+i);
setProperty (“NewSite”+i, _y, siteY+i);
/:text = siteY+i;
i = i+1;
amount = amount-1;
}

use eval() as in

setProperty (<b>eval(</b>“NewSite”+i<b>)</b>, _x, <b>eval(</b>siteX+i<b>)</b>);

or try something like this

site = new Array([264, 183], [206, 99]);
for (var i = 1; i < site.length+1; i++) {
var instanceName = “NewSite”.concat(i);
with (_root) {
BaseSite.duplicateMovieClip(instanceName, i);
with (eval(instanceName)) {
_x = site[i-1][0];
_y = site[i-1][1];
}
}
}

Just drop in the coords you want as an array in the format [_x,_y] and the AS will duplicate BaseSite and assign the specified coords