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)
var MiniMap:MiniMapTile = new MiniMapTile();
addChild(MiniMap);
Any Help would be greatly appreciated.
Here is how i did it in AS2 for anyone Interested.
_root.MapTile.duplicateMovieClip("Tile" add i, i);
Edit: I have done it the long way made 12 separate objects. Incredibly convoluted.