flash modulo help
flash modulo help
Out of context: Reply #3
- Started
- Last post
- 4 Responses
- versa0
makeThumbMenu = function () {
item_spacing = 25;
i = 1;
col = 1;
row = 1;
colMax = 5;
while (i<=_parent.myVars.totalItems) {
duplicateMovieClip("thumbItem", "thumb_item_" + i,i);
me = this["thumb_item_" + i];
me.item = eval("_parent.myVars.item" + i);
me._x +=(item_spacing*(row-1));
me._y +=(item_spacing*(col -1));
i++;
row++;
if((i%colMax)==0){
col++;
row =1;
}
}
}something like that?