Rows and columns

Hi

I have a question about arrays. I attached my example to make it clear. In this example I created an array of objects aligned in 1 row. But how do I have to make that the objects appear in several rows and columns.

thanx for your help.

I did not see any arrays in your code.There are several ways of doing this, here is one

var i = 0;
for (var y = 0; y<5; y++) {
	for (var x = 0; x<3; x++) {
		this.attachMovie("anim", "bol"+i, 10+i);
		this["bol"+i]._x = 10+(x*110);
		this["bol"+i]._y = 10+(y*110);
		i++;
	}
}

Thanks for your help

I have another question now. I continued on the code, and i have something that I think is strange.

I added some code that fades in and out when we roll over the pictures, but why doesn’t my text fade. It is part of the object I’m controlling. I also tried to put the text in a new movieclip, but it has the same result.

Another question that I have: How can I remove a movieclip from the moment the jpg i was loading is in its place. I know I have to use the unloadMovie, but I have no clue at all how I have to say “after jpg is loaded”.

Here is my latest file

Any ideas are welcome

thanx

remove the spaces in the name:)