I have 12 mc named 1 to 12, and this function to pass a string into each one, but i cano’t make it work…
I believe that the problem is the target assigment (the i var number isn’t recognized as target), Any help around
// Carga las 12 fotos del nivel
function loadFotos (stringNivel) {
if (dir==0) {
dir="";
}
var i:Number=1
do {
link=String(stringNivel + i + “.jpg”);
destino=String(“clip” + i);
loadMovie(link , destino);
trace(link);
with (i) {
var aLink:String=link;
}
i++;
} while (i<13);
}
Thanks for your help!!