# Addressing nested clips with dynamic name?

**URL:** <https://forum.kirupa.com/t/addressing-nested-clips-with-dynamic-name/312620>\
**Category:** flash\
**Created:** [August 9, 2010, 12:19pm UTC](https://forum.kirupa.com/t/addressing-nested-clips-with-dynamic-name/312620 "2010-08-09T12:19:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seventy9](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@seventy9](https://forum.kirupa.com/u/seventy9)\
**Post date:** [August 9, 2010, 12:19pm UTC](https://forum.kirupa.com/t/addressing-nested-clips-with-dynamic-name/312620/1 "2010-08-09T12:19:42Z")

</div>

I’m not sure this is a proper title, but please take a look at my problem. 😊  
Let’s say I have a movie clip named MC in stage. The following statements work.

[COLOR=“Olive”]**var clipName = “MC”;  
this[clipName].y = 100;**[/COLOR]

However, if I put a child movie clip (named childMC) inside that MC movie clip, I’m not able to address the child movie clip by the same fashion. I’ll get an error.

[COLOR=“Olive”]**var clipName = “MC.childMC”;  
this[clipName].y = 100;**[/COLOR]

Is there any way to address the child movie clip with dynamic name? Thanks for the help!
