I have a for loop which duplicates a movieclip called "mc" in the root. mc has a text field called "tf" inside and I want to load the different texts that I get from an external file to every different copy of the MC "mc". I have written a code but it seems not to work.. Can you help me?
-----
for(i=0; i<Number(loadVarsText.num);i++) {
// num is the number of variables
duplicateMovieClip(mc,"mc"+i,i+1);
lev = "_level"+(i+1);
mec = "mc"+i;
v = "var"+i;
eval(lev).eval(mec).tf.text = loadVarsText.eval(v);
setProperty("mc"+i,_x,100);
setProperty("mc"+i, _y,i*15);
}
-----