# Targeting a nested MC

**URL:** <https://forum.kirupa.com/t/targeting-a-nested-mc/193479>\
**Category:** Uncategorized\
**Created:** [July 13, 2006, 4:17pm UTC](https://forum.kirupa.com/t/targeting-a-nested-mc/193479 "2006-07-13T16:17:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jemayes](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jemayes](https://forum.kirupa.com/u/jemayes)\
**Post date:** [July 13, 2006, 4:17pm UTC](https://forum.kirupa.com/t/targeting-a-nested-mc/193479/1 "2006-07-13T16:17:00Z")

</div>

I am creating a drop down menu and having problems adding problems to the nested MCs. I have all the actions on the root timeline and I have a one Main\_MC which holds several Sub\_MC’s. I have the Main MC animated fine but I can’t find how to control the Sub-MC’s.

Here is a sample of my code and I have tried \_root. and this. and show below but I can’t get it to work!

//main MC  
Main\_MC.onRollOver = over;  
Main\_MC.onRollOut = out;  
function over() {  
this.gotoAndPlay(2);  
}  
function out() {  
this.gotoAndPlay(16);  
}  
//sub mc  
Main\_MC.sub\_Mc.onRollOver = overtwo;  
Main\_MC.sub\_Mc.onRollOut = outtwo;  
Main\_MC.sub\_Mc.onRelease = function() {  
gotoAndPlay(“futureFrame”);  
};  
function overtwo() {  
this.Main\_MC.Sub\_Mc.gotoAndPlay(2);  
}
