Addressing duplicated movieclips

Is there (or what is the) best method to address duplicated movieclips?

For example if you duplicate a number of movieclips (or attach or anything else) through a [FONT=Courier New][COLOR=Magenta]for[/COLOR][/FONT] loop and give them names like [FONT=Courier New][COLOR=Magenta]mc1, mc2[/COLOR][/FONT], etc, how can you address them outside the loop? Especially if the number of times you duplicate the clips is read from a file which can change constantly.

Example - an image gallery where you just add the files to your xml and they show up in the gallery.