Accessing duplicatedMovieClip dynamic text vars

Hello ppl,

I have an xml content loaded in AS and to that content I made a movieClip to show that content.

I’m duplicating that movieClip according to the quantity exposed in xml.

My problem is that when I duplicate de movie clip, I don’t find a way to contact the dynamic texts variables.

Her’s the dynamic texts vars:

  • client_number;
  • client;

Her’s the code:


var my_xml = new XML(); 
my_xml.ignoreWhite = true;
my_xml.load("list.xml");//?random="+random(9999999999));
my_xml.onLoad = function(success){ 
    if (success){ 
        //------------------------ trace the list --------------------------------------
        
        xml_content = my_xml.firstChild.childNodes;
        
        for (var i = 0; i<xml_content.length; i++) {
            child = my_xml.firstChild.childNodes*; //this loads the first xml child
            project_code += child.attributes.project_nr; //this fetch the project_nr
            
            duplicateMovieClip(project, "project"+i, getNextHighestDepth()); //this duplicates movie clip
            
            pos = project._y; // initial pos of movieclip
            setProperty(["project"+i], _x, 0);
            setProperty(["project"+i], _y, pos + (230*i)); //this makes the duplicated movie clips align underneath the others.
            
            //setProperty(["projecto"+i], client_nr, project_code); //onde off my tries to access the duplicated movieClip dynamic text vars

           //["project"+i]client_nr = project_code; //another one failed :(
            

          }
        project._visible = false; //this takes out the real movieClip that duplicates the others
    }
}