[COLOR=gray]I want to make an array that holds objects, each object containing an x- and y-value representing the location of each mc on screen. The mcs will not move. How do I reference each mc using a variable with a loop?[/COLOR]
[COLOR=gray][/COLOR]
[COLOR=gray]For example, if I have the mcs mc_0, mc_1, mc_2, mc_3, … mc_49[/COLOR]
[COLOR=gray]I want to…[/COLOR]
var n = 50;
var myArray:Array = new Array();
for (i = 0; i < n; i++){
myArray.push(
** "mc_" + i // this line is far from correct**
)
}
[COLOR=red]Solved: search eval() in forum.[/COLOR]