# Making Grid with MovieClip. Help Please

**URL:** <https://forum.kirupa.com/t/making-grid-with-movieclip-help-please/289410>\
**Category:** Uncategorized\
**Created:** [May 29, 2009, 10:11pm UTC](https://forum.kirupa.com/t/making-grid-with-movieclip-help-please/289410 "2009-05-29T22:11:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lordali](https://avatars.discourse-cdn.com/v4/letter/l/59ef9b/32.png) [@lordali](https://forum.kirupa.com/u/lordali)\
**Post date:** [May 29, 2009, 10:11pm UTC](https://forum.kirupa.com/t/making-grid-with-movieclip-help-please/289410/1 "2009-05-29T22:11:01Z")

</div>

All I want to make a grid with movieClip. But I can’t make no matter how much time I have used exploring and trying.  
I have 2 movieClips and button  
1 - mc\_main  
2 - Row  
Both movieClips are linked to classes. mc\_main is on stage its a small dot.  
when I press button a new instance of Row should be attached to mc\_main and should append. Below is code if anyone tell me how to attachieve this.  
Do you have any code to share if you have done something like that to learn from it please.

```php

package  
{
 import flash.display.MovieClip;
 import flash.events.*;
 public class Main extends MovieClip 
 {
  public function Main() 
  { 
   cmd_create.addEventListener(MouseEvent.CLICK, cmd_create_click);
  }
  
  private function cmd_create_click(evt:Event):void
  {
   var test:mc_main = new mc_main();
   test.addChild(new Row());
  }
 }
 
package {
 import flash.display.MovieClip;
 public class Row extends MovieClip {
  public function Row() 
  { 
   trace("row");
  }
 }
 
}

package {
 import flash.display.MovieClip;
 public class Mc_main extends MovieClip{
  public function Mc_main() 
  { 
   trace("Mc_main");
  }
 }
 
}

```
