# Simple grid?

**URL:** https://forum.kirupa.com/t/simple-grid/43816
**Category:** flash
**Created:** [February 26, 2004, 4:56am UTC](https://forum.kirupa.com/t/simple-grid/43816 "2004-02-26T04:56:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mindfriction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindfriction/32/172_2.png) [@mindfriction](https://forum.kirupa.com/u/mindfriction)
#### Post date: [February 26, 2004, 4:56am UTC](https://forum.kirupa.com/t/simple-grid/43816/1 "2004-02-26T04:56:57Z")

</div>

Hi fellow Kuripians :),

Im having trouble creating a grid dynamically with AS. Ive used the nested for loop method as in Kirupa’s example [http://www.kirupa.com/developer/actionscript/grid.htm](http://www.kirupa.com/developer/actionscript/grid.htm) , so I know how to create grids with hard coded box numbers, i.e. 10 boxes across (x) and 10 down (y)…

What im trying to achieve is a grid which is limited to 4 boxes across and n boxes down depending on the total number of boxes that need to be created. Make sense ? lol

Im stuck, and it seems so simple?
