Posted By

GeorgeCross on 01/17/13


Tagged

rows columns arrange grids


Versions (?)

Arrange grids when columns are known


 / Published in: ActionScript 3
 

Arrange objects in grid position when number of columns is known.

  1. for(var i:int = 0; i<10; i++)
  2. {
  3. obj.x = _width *(i%_numOfColumns);
  4. obj.y = _height*Math.floor(i/_numOfColumns);
  5. }

Report this snippet  

You need to login to post a comment.