# Access nested MCs from Main document class

**URL:** <https://forum.kirupa.com/t/access-nested-mcs-from-main-document-class/327585>\
**Category:** Uncategorized\
**Created:** [March 11, 2012, 10:52pm UTC](https://forum.kirupa.com/t/access-nested-mcs-from-main-document-class/327585 "2012-03-11T22:52:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blueguy](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@Blueguy](https://forum.kirupa.com/u/Blueguy)\
**Post date:** [March 11, 2012, 10:52pm UTC](https://forum.kirupa.com/t/access-nested-mcs-from-main-document-class/327585/1 "2012-03-11T22:52:32Z")

</div>

Hi guys, i hope someone can help me out.

I have 3 dynamic textfields that are added to the stage through an external class, (I only add the main container from the Main.as) the textfields are nested under 5 MCs (that’s what i see when i list objects in the debugger) how can i access those textfield from the Main document class?

I’ve tried by path, by getchildbyname, i’ve exported the font for AS (the textfields have instance names)… and nothing works, i either get an error or it tells me it has no properties, or null…

The textfields are meant to appear in several places, but i need to change the text on them, and I’m a bit stuck with this, so i would appreciate some help.

Thanks in advance, B.
