/ Published in: ActionScript 3
Arrange objects in grid position when number of columns is known.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
for(var i:int = 0; i<10; i++) { obj.x = _width *(i%_numOfColumns); obj.y = _height*Math.floor(i/_numOfColumns); }