# Duplicating movie clip based on xml data

**URL:** <https://forum.kirupa.com/t/duplicating-movie-clip-based-on-xml-data/299797>\
**Category:** flash\
**Created:** [November 11, 2009, 5:58am UTC](https://forum.kirupa.com/t/duplicating-movie-clip-based-on-xml-data/299797 "2009-11-11T05:58:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![n000bie](https://avatars.discourse-cdn.com/v4/letter/n/7993a0/32.png) [@n000bie](https://forum.kirupa.com/u/n000bie)\
**Post date:** [November 11, 2009, 5:58am UTC](https://forum.kirupa.com/t/duplicating-movie-clip-based-on-xml-data/299797/1 "2009-11-11T05:58:09Z")

</div>

hi all,

I got a flash file which reads xml data and based on total data I need to duplicate movie clips and show them horizontally. Till now i have read the data and displayed it but dont have idea how to display them horizontally. Can someone help me please ?

```auto
i = 0;
level = 100;

//total xml node count
totalNodes = _root.total - 1;
 
trace(totalNodes);

// display the first one 
_root.mc_contentHolder.mc_content.heading.text = _root.xmlImeTitle*;
_root.mc_contentHolder.mc_content.desc.htmlText = _root.xmlImeDesc*;

for (var i:Number = 1; i <= totalNodes; i++) {

    duplicateMovieClip (mc_content, "newcontent" + i, i);
    var newClip:String= "newcontent" + i;
    trace (newClip);
    newClip._x = 328;

}

```

I have done this till now, it duplicates the movie clip but when i want it to change its x coordinate it shows error

**Error** Symbol=mc\_contentHolder, layer=Action, frame=1, Line 20: There is no property with the name ‘x’.  
newClip.x = 328;

Total ActionScript Errors: 1, Reported Errors: 1
