Hey! Thanks for looking at my post.
I have a loop within a loop as you can see below. I am trying to trace the images so that each one comes up:
video0
video1
video2
video3 (etc. - there are a total of 9 images indicating videos).
But the way that I have it tracing right now does not bring up the names as I want them. You will probably be able to see why after looking at the code below.
Here is my loop:
[AS]
for (var i=0; i<rows; i++) {
for (var j=0; j<columns; j++) {
imageHolder = new MovieClip;
imageHolder.x = leftMargin + j * imageWidth * marginX;
imageHolder.y = 290 + i * imageHeight * marginY;
addChild(imageHolder);
imageHolders.push(imageHolder);
}
//this is what I currently have but I know its not right. Just not sure how to make it right.
//I tried different ways of doing it such as putting a trace in the second loop.
imageHolder.name = “video”+ i + j;
trace (“video”+ i + j);
}
[/AS]
So, if you know why mine is wrong and the right way to do this. could you pls explain this to me.
Much appreciated!