# Dynamic text Unloading by himself

**URL:** <https://forum.kirupa.com/t/dynamic-text-unloading-by-himself/306085>\
**Category:** flash\
**Created:** [March 9, 2010, 12:15pm UTC](https://forum.kirupa.com/t/dynamic-text-unloading-by-himself/306085 "2010-03-09T12:15:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elementss](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/elementss/32/1698_2.png) [@Elementss](https://forum.kirupa.com/u/Elementss)\
**Post date:** [March 9, 2010, 12:15pm UTC](https://forum.kirupa.com/t/dynamic-text-unloading-by-himself/306085/1 "2010-03-09T12:15:31Z")

</div>

Hello,

ive created a few dynamic text boxes in a MovieClip

they move and get Blured via Motion Tween (New Motion Tween).

load the text fields from an xml file…

```auto

var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, loadXML);
loader.load(new URLRequest("TXTDATA.XML"))
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
function loadXML(e:Event):void {
	var xml=new XML(e.target.data);
	var xDoc:XMLDocument = new XMLDocument();
	xDoc.ignoreWhite=true;
	xDoc.parseXML(xml.toXMLString());
		
	HeaderTXT_mc.HEAD2.text==xDoc.firstChild.childNodes[0].childNodes[1].firstChild;
	trace(xDoc.firstChild.childNodes[0].childNodes[1].firstChild);
	
	HeaderTXT_mc.HEAD1.text=xDoc.firstChild.childNodes[0].childNodes[0].firstChild;
	trace(xDoc.firstChild.childNodes[0].childNodes[0].firstChild);
	
	HeaderTXT_mc.HEAD1IN.text=xDoc.firstChild.childNodes[0].childNodes[0].firstChild;
	trace(xDoc.firstChild.childNodes[0].childNodes[0].firstChild);
	
	HeaderTXT_mc.HEAD3.text=xDoc.firstChild.childNodes[0].childNodes[2].firstChild;
	trace(xDoc.firstChild.childNodes[0].childNodes[2].firstChild);
	
	HeaderTXT_mc.HEAD4.text=xDoc.firstChild.childNodes[0].childNodes[3].firstChild;
	trace(xDoc.firstChild.childNodes[0].childNodes[3].firstChild);
	}
stop();

```

as you can see i trace them and i get the text in the output window…  
all work fine…  
this Code is in the main Timeline…

but the mc runs in a loop…first loop runs fine in the second loop the dynamic text unloads.  
and i see nothing…

why is that?
