# Creating mc´s in the fly, how to access them?

**URL:** <https://forum.kirupa.com/t/creating-mc-s-in-the-fly-how-to-access-them/80888>\
**Category:** flash\
**Created:** [February 25, 2005, 5:40pm UTC](https://forum.kirupa.com/t/creating-mc-s-in-the-fly-how-to-access-them/80888 "2005-02-25T17:40:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Appa](https://avatars.discourse-cdn.com/v4/letter/a/b9bd4f/32.png) [@Appa](https://forum.kirupa.com/u/Appa)\
**Post date:** [February 25, 2005, 5:40pm UTC](https://forum.kirupa.com/t/creating-mc-s-in-the-fly-how-to-access-them/80888/1 "2005-02-25T17:40:27Z")

</div>

Ok, this will be hard to explain but ill try.  
I use FOR loopt to create movieclips and assign values from XML file to them.  
Looka at the code:

myXML.onLoad = function(success:Boolean) {  
if (success) {  
nNodes = myXML.firstChild.childNodes.length;  
\_root.createEmptyMovieClip(“news\_mc”, \_root.getNextHighestDepth());

```
	for (var i:Number = 0; i&lt;nNodes; i++) {
		var name:String = "dataHolder"+i+"_mc"
		news_mc.attachMovie("dataHolder_mc", nimi, uutiset_mc.getNextHighestDepth(),{_y:aArvot*});
	}
}

```

}

question is, how can i access the movieclips after this?  
the names are like "dataHolder1\_mc, dataHolder2\_mc etc…
