Animated Text loaded via XML not working

I have a dynamic text field in a MC that should loop, but for some reason it plays once then vanishes. The text from the XML file does show up, and the text field is still there but blank.

I have checked the basic stuff like anti alias for animation, embed, no stop(); or anything that simple.

Here is the XML, all my instances are labeled correctly in the .fla

function loadXML(loaded) {
    if (loaded) {
        xmlNode = this.firstChild;
        image = [];
        title = [];
        desc = [];
        file = [];
        site = [];
        language = [];
        total = xmlNode.childNodes.length;
        for (i=0; i<total; i++) {
            
            title* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
            desc* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
            language* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
            
            /*
            pic* = xmlNode.childNodes*.childNodes[2].firstChild.nodeValue;
            image* = xmlNode.childNodes*.childNodes[3].firstChild.nodeValue;
            site* = xmlNode.childNodes*.childNodes[3].firstChild.nodeValue;
            */
        }
        //trace(image);
        //trace(title);
        //trace(desc);
        goAhead();
        
    } else {
        content = "file not loaded!";
    }
}

xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("samples.xml");




function goAhead(){
    for(c=0; c<total;c++){
        var entry = "module"+c;
        _root.module0.details.details2.languagetext.text = language[c];
        _root.testclip.testtext.text = title[c];
    }    
    

Hi. I got this problem some times and most of the time is not an AS code problem. If the server refuses to give me the xml file, flash “load” a blank object. The status is “0”, but there is nothing inside the xml object, so all tags are also blanks. This occurs when I try to load xml file from different domain. In that case, I had to made a crossdomain.xml file and all tags shows up - like magic!

Maybe you should look at the both sides of the problem: flash side (AS code), and server side.

Good luck!

This is happening when I run the .swf on my computer. The XML loads correctly and the MC plays once, but when it loops the XML isn’t there anymore for some reason.

Problem Fixed.

When I created a tween the dynamic text field became a graphic, screwing it up. When I tweened the movie clip itself instead of the text field, everything worked as intended.