# Accessing TextField in a MC from \_root

**URL:** <https://forum.kirupa.com/t/accessing-textfield-in-a-mc-from--root/115044>\
**Category:** Uncategorized\
**Created:** [July 5, 2004, 7:44am UTC](https://forum.kirupa.com/t/accessing-textfield-in-a-mc-from--root/115044 "2004-07-05T07:44:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ash123](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@ash123](https://forum.kirupa.com/u/ash123)\
**Post date:** [July 5, 2004, 7:44am UTC](https://forum.kirupa.com/t/accessing-textfield-in-a-mc-from--root/115044/1 "2004-07-05T07:44:44Z")

</div>

Hi all,

I am creating dynamic textfields into a MC using a for loop:  
for example:

for(i=0; i\<100; i++){  
createTextField(“data”+i, i+100, 10, 10, 100, 20);  
this[“data”+i].text="" //data fetched from XML file;  
}

Now I want to access the values inside these MC ie which are their in those text fields created. How can I access the same???

I am using attachmovie to get the MC on to the stage. Any help or suggesstion will be appreciated. Thanx in advance !!!

Regards  
Ash
