# Xml in movie clips within movie clips

**URL:** <https://forum.kirupa.com/t/xml-in-movie-clips-within-movie-clips/126082>\
**Category:** Uncategorized\
**Created:** [October 20, 2004, 12:09pm UTC](https://forum.kirupa.com/t/xml-in-movie-clips-within-movie-clips/126082 "2004-10-20T12:09:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avocadojo](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@avocadojo](https://forum.kirupa.com/u/avocadojo)\
**Post date:** [October 20, 2004, 12:09pm UTC](https://forum.kirupa.com/t/xml-in-movie-clips-within-movie-clips/126082/1 "2004-10-20T12:09:52Z")

</div>

hi, i’m learning flash + xml, picking up bits and pieces from everywhere, just have a minor problem:

i have a 6 movie clips on the main timeline named ‘item\_0\_mc’, ‘item\_1\_mc’, etc, each of which contains dynamic text fields and movieclips which I am loading (the respective) content into…which is working fine…

Once i create ‘item\_0\_mc’, ‘item\_1\_mc’…‘item\_6\_mc’ into another movie clip (named ‘content\_pg1\_mc’), the content doesnt load…I’m not sure what the referring code would be now…

so, **without** making the [color=Black]item\_0\_mc[/color] into another movie clip, the code refering the info would be:

[color=DimGray]item\_mc.starsign\_txt.text = tshirt.attributes.starsign;[/color]

what is it do i have to add to reach the content?

file is attached…

this\_mc = this;  
function display() {  
[color=DimGray]//trace(xmlData.firstChild.childNodes[0]);[/color]  
for (var e = 0; e\<6; e++) {  
item\_mc = this\_mc[“item\_”+e+"\_mc"];  
tshirt = xmlData.firstChild.childNodes[e];  
item\_mc.picture\_mc.loadMovie(tshirt.attributes.image);  
item\_mc.title\_txt.text = tshirt.attributes.title;  
item\_mc.starsign\_txt.text = tshirt.attributes.starsign;  
item\_mc.hobbies\_txt.text = tshirt.attributes.hobbies;  
item\_mc.loves\_txt.text = tshirt.attributes.loves;  
}  
}

cheers,  
Jo
