var count:int=100; var row:int=10; for(var i:int=0, h:int=0, v:int=0; i<count; i++){ h=i%row; v=uint(i/row); trace(v,h); }