# Creating dynamic text fields within dynamic mc

**URL:** <https://forum.kirupa.com/t/creating-dynamic-text-fields-within-dynamic-mc/172621>\
**Category:** flash\
**Created:** [December 16, 2005, 5:45am UTC](https://forum.kirupa.com/t/creating-dynamic-text-fields-within-dynamic-mc/172621 "2005-12-16T05:45:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sigepmest37](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sigepmest37](https://forum.kirupa.com/u/sigepmest37)\
**Post date:** [December 16, 2005, 5:45am UTC](https://forum.kirupa.com/t/creating-dynamic-text-fields-within-dynamic-mc/172621/1 "2005-12-16T05:45:27Z")

</div>

Im using this xml “data.xml”:

```auto
 <XML>
 <salesreps>
  <rep>
   <firstname value="Jon"/>
   <lastname value="Doe"/>
   <phone value="(555)999-9999"/>
   <email value="jondoe@yahoo.com"/>
   <description value="Description for Jon Doe."/>
   <photo value="../LandAm/images/wes.bmp"/>
  </rep>
  <rep>
   <firstname value="Jane"/>
   <lastname value="Doe"/>
   <phone value="(555)555-5555"/>
   <email value="janedoe@yahoo.com"/>
   <description value="Description for Jane Doe."/>
   <photo value="../LandAm/images/robin.jpg"/>
  </rep>
  <rep>
   <firstname value="adfkljasdfl;kj"/>
   <lastname value="l;kajglaskdj"/>
   <phone value="kdfjgls;dkjg"/>
   <email value="dfgkljsdlg;"/>
   <description value="kjdgfl;asdkgnl;sakdnglkj"/>
   <photo value="../LandAm/images/nophoto.jpg"/>
  </rep>
 </salesreps>
</XML> 

```

I want to generate a mc for each rep with 6 text fields containg the 6 values for eash rep. So for this xml there would be 3 mc’s with 6 text fields in each. This is one of my first times really diving in to xml parsing in Flash.

I just need a push in the right direction. Thank you for you time!
