# Square grid

**URL:** https://forum.kirupa.com/t/square-grid/323527
**Category:** flash
**Created:** [July 5, 2011, 2:54pm UTC](https://forum.kirupa.com/t/square-grid/323527 "2011-07-05T14:54:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![12abhi12](https://avatars.discourse-cdn.com/v4/letter/1/9f8e36/32.png) [@12abhi12](https://forum.kirupa.com/u/12abhi12)
#### Post date: [July 5, 2011, 2:54pm UTC](https://forum.kirupa.com/t/square-grid/323527/1 "2011-07-05T14:54:09Z")

</div>

I want to make a square grid of fixed side length but varying grid number using code.  
That is, the number of grids should be specified by the user (say 3_3) and after pressing a button, the stage should be broken into 3_3 grids.

I don’t want any code, just a method on how to do it. I have tried it by using simple loops but the method just fails for no reason I can figure.
