# Targeting a MC inside a MC with a dynamically generated name

**URL:** <https://forum.kirupa.com/t/targeting-a-mc-inside-a-mc-with-a-dynamically-generated-name/300721>\
**Category:** flash\
**Created:** [November 26, 2009, 3:29am UTC](https://forum.kirupa.com/t/targeting-a-mc-inside-a-mc-with-a-dynamically-generated-name/300721 "2009-11-26T03:29:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yani](https://avatars.discourse-cdn.com/v4/letter/y/e9c0ed/32.png) [@yani](https://forum.kirupa.com/u/yani)\
**Post date:** [November 26, 2009, 3:29am UTC](https://forum.kirupa.com/t/targeting-a-mc-inside-a-mc-with-a-dynamically-generated-name/300721/1 "2009-11-26T03:29:04Z")

</div>

Hi I’m trying to target a movieclip inside another movie clip which I have dynamically generated the name. I hope I’m making sense.

```auto
firstText = "text" + randomNum;

_root[firstText].gotoAndStop(9);

firstTitle = _root[firstText + ".title_txt"];
    
TweenLite.to(firstTitle, 0, {tint:0x32bdf3});

```

The first part works, I can “firstText” and I can make it go to frame 9 and stop but I can’t manipulate the movie clip “title\_txt” which is inside “firstText”

Any help would be greatly appreciated. Thanks in advance
