# Making/Refering to Instances

**URL:** <https://forum.kirupa.com/t/making-refering-to-instances/233640>\
**Category:** flash\
**Created:** [July 25, 2007, 5:08pm UTC](https://forum.kirupa.com/t/making-refering-to-instances/233640 "2007-07-25T17:08:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan0](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@Dan0](https://forum.kirupa.com/u/Dan0)\
**Post date:** [July 25, 2007, 5:08pm UTC](https://forum.kirupa.com/t/making-refering-to-instances/233640/1 "2007-07-25T17:08:38Z")

</div>

Hey,  
Sorry to ask such a noob question but…  
I know how to make instances of objects (obviously) but if I am dynamically making them through a for() loop how can I keep references to them, simply and efficently. Making tones of variables isnt going to help. I don’t know what I should search for as the questions is a bit general.

In AS2 I would:

- make a holder
- attach some movies in it through a for() loop
- refer to them by set name like (mc1, mc2… etc)

In AS3 I am:

- making my for() loop and instances with it [var a = new Thing] [a.someFunction()] [a is erased from memory at end of loop]
- wondering how I should refer to them…

Thanks for the help,  
Dan :h:😊
