# Accessing duplicatedMovieClip dynamic text vars

**URL:** <https://forum.kirupa.com/t/accessing-duplicatedmovieclip-dynamic-text-vars/250410>\
**Category:** flash\
**Created:** [January 29, 2008, 10:46am UTC](https://forum.kirupa.com/t/accessing-duplicatedmovieclip-dynamic-text-vars/250410 "2008-01-29T10:46:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LozT](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@LozT](https://forum.kirupa.com/u/LozT)\
**Post date:** [January 29, 2008, 10:46am UTC](https://forum.kirupa.com/t/accessing-duplicatedmovieclip-dynamic-text-vars/250410/1 "2008-01-29T10:46:39Z")

</div>

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:

```auto

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
    }
}

```
