# Dynamic Text Variable in Nested MC

**URL:** <https://forum.kirupa.com/t/dynamic-text-variable-in-nested-mc/196836>\
**Category:** flash\
**Created:** [August 11, 2006, 9:34am UTC](https://forum.kirupa.com/t/dynamic-text-variable-in-nested-mc/196836 "2006-08-11T09:34:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orpheus7](https://avatars.discourse-cdn.com/v4/letter/o/aca169/32.png) [@Orpheus7](https://forum.kirupa.com/u/Orpheus7)\
**Post date:** [August 11, 2006, 9:34am UTC](https://forum.kirupa.com/t/dynamic-text-variable-in-nested-mc/196836/1 "2006-08-11T09:34:24Z")

</div>

Good day,

I am working on passing variables from dynamic text boxes to a PHP script. Most of the dynamic text boxes are located on the main timeline, and the values get passed without a problem. However, I have two dynamic text fields in separate nested movie clips that when passed show up as ‘undefined’.  
I am pretty sure that the path I am using is wrong (although I am using every combination that I can think of). I am still a bit of a newbie, so it could be anything. I have spent the last two days googling, checking out forums and reading the books I have without any luck.

Does anyone have any ideas as to what I can try?

The code I am using is;

```auto
var name = this.nested_movie_mc.text_variable

```

I have also tried

```auto
var name = _root.nested_movie_mc.text_variable.text

```

```auto
var name = _parent.nested_movie_mc.text_variable

```

and every other combination I could think of.

Just to make sure everything is clear; ‘name’ is the variable I want to send to the PHP script, ‘nested\_movie\_mc’ is the name of the movie clip in which the dynamic text box resides and ‘text\_variable’ is the variable name of the dynamic text box.

Any help would be greatly appreciated.

Thanks and have a good day. :cross-eye
