# MiniMap help - dynamic instantiation

**URL:** <https://forum.kirupa.com/t/minimap-help-dynamic-instantiation/302523>\
**Category:** flash\
**Created:** [January 2, 2010, 12:07pm UTC](https://forum.kirupa.com/t/minimap-help-dynamic-instantiation/302523 "2010-01-02T12:07:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eppiox](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@Eppiox](https://forum.kirupa.com/u/Eppiox)\
**Post date:** [January 2, 2010, 12:07pm UTC](https://forum.kirupa.com/t/minimap-help-dynamic-instantiation/302523/1 "2010-01-02T12:07:51Z")

</div>

Migrating from AS2 to AS3 (for a while now)

Currently I am trying to create a mini map which i can populate with the contents of an array.

I can make any size grid with little to no trouble in AS3, for arguments sake I have been trying to get a 4x4 Grid populated.  
I can even make listeners inside the new class but i cannot figure out a way to give each new MiniMap tile a unique identifier like i would of in AS2 and then assign the current frame to play.

I have looked around and tried a few tutorials with no success.

I have been using this to create the tiles (inside two for loops to make the grid)

```auto
var MiniMap:MiniMapTile = new MiniMapTile();
 addChild(MiniMap);

```

Any Help would be greatly appreciated.

Here is how i did it in AS2 for anyone Interested.

```auto
_root.MapTile.duplicateMovieClip("Tile" add i, i);

```

Edit: I have done it the long way 😕 made 12 separate objects. Incredibly convoluted.
