# Access dynamic movieclip

**URL:** <https://forum.kirupa.com/t/access-dynamic-movieclip/288527>\
**Category:** flash\
**Created:** [May 17, 2009, 4:02pm UTC](https://forum.kirupa.com/t/access-dynamic-movieclip/288527 "2009-05-17T16:02:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dardein](https://avatars.discourse-cdn.com/v4/letter/d/e95f7d/32.png) [@Dardein](https://forum.kirupa.com/u/Dardein)\
**Post date:** [May 17, 2009, 4:02pm UTC](https://forum.kirupa.com/t/access-dynamic-movieclip/288527/1 "2009-05-17T16:02:21Z")

</div>

function LoadXML(e:Event):void {  
xmlData = new XML(e.target.data);  
var list:XMLList = xmlData.snipper;  
num = list.length();  
for(var i:Number = 0; i\<aantal;i++){  
container = new Container();  
container.name = “snipper”+ i;  
container.Tekst.text = list\*.@snippertekst; \Tekst = dynamic text fld in container  
var l:Loader = new Loader();  
l.load(new URLRequest(list\*.@image));\puts xml loaded image in container  
l.x=0;  
l.y=-40;  
container.addChild(l);  
addChild(container);  
}

Hello all. I add alot of containers to the stage, but I would like to be able to remove the containers again outside the function.  
I was thinking that I could maby write removeChild(snipper1), but I can’t acces them after they are created ?

Any help would be much appreciated 🙂

-Dardein
