Attachmovie to a grid

hi
i am trying to attach 78 movieclips in a 3 column grid, each column needs to have 26 names that need to be ordered and numbered from top to bottom, not from left to right. so the top movieclips should be 0 26 52, not 0 1 2. i am using the following, but can’t figure this one out.

	for(i = 0; i < total; i++) {
		var b:MovieClip = list_mc.attachMovie('list_btn','btn'+i,i);
		b.id = i;

		b.hit_mc._width	= b.name_txt.textWidth+10;
		b._x = Math.floor(i%max)*spacing;
		b._y = Math.floor(i/max)*16;

		b.onRollOver = roll_on;
		b.onRollOut = roll_off;
		b.onPress = get_drummer;
	}

HI, Michael… or anyone.

Is there a way to do this without i=1, but instead i=0. I have an XML array that requires i=0.