so i’m working on a tutorial using a for loop, and i’m still trying to get the hang of for loops. here’s the code:
var imagesNumber:Number = 9;
for (i=1; i<=imagesNumber; i++) {
container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);
}
so the last line that says
container.attachMovie("thumb"+i,"thumb"+i+"_mc",i);
is the part i’m having trouble with. i would just like to know how i would “translate” that in my head.
ex: we’re attaching a movie to the container variable. in it is a “thumb” … and it increments and so on and so on.
could someone sort of help me figure out exactly how to read that last line.
i just want to know for myself, because i don’t like accepting free tutorial code without analyzing it and making sure i know it for myself. otherwise, i would feel like i wasn’t really having to learn anything.
thanks