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…
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?