# Loosing mc functions when nested in another mc

**URL:** <https://forum.kirupa.com/t/loosing-mc-functions-when-nested-in-another-mc/222981>\
**Category:** Uncategorized\
**Created:** [April 18, 2007, 3:07pm UTC](https://forum.kirupa.com/t/loosing-mc-functions-when-nested-in-another-mc/222981 "2007-04-18T15:07:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rosanna](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@rosanna](https://forum.kirupa.com/u/rosanna)\
**Post date:** [April 18, 2007, 3:07pm UTC](https://forum.kirupa.com/t/loosing-mc-functions-when-nested-in-another-mc/222981/1 "2007-04-18T15:07:04Z")

</div>

I have this menu\_mc appearing on stage on RollOver.  
Inside this menu\_mc are 5 other mcs that are also supposed to react on rollOver.  
But : the rollOver works only on the menu\_mc, the rollOver on the nested mcs no.  
I put all the script on the main stage, accessing my nested mcs with the “insert target path”.  
I tried also to put the script of the nested mcs inside the menu\_mc movie clip, but it does not respond.  
What do I do wrong ?  
Thank you.

import mx.transitions.Tween;  
import mx.transitions.easing.\*;  
orig = Menu\_mc.\_x;  
Menu\_mc.onRollOver = function() {  
menuIn = new Tween(this, “\_x”, Regular.easeInOut, this.\_x, 0, .5, true);  
fadeAway();  
};  
Menu\_mc.onRollOut = function() {  
menuIn = new Tween(this, “\_x”, Regular.easeInOut, this.\_x, orig, .5, true);  
fadeBack();  
};  
this.Menu\_mc.Menu1.\_alpha = 70;  
this.Menu\_mc.Menu2.\_alpha = 70;  
this.Menu\_mc.Menu3.\_alpha = 70;  
this.Menu\_mc.Menu4.\_alpha = 70;  
this.Menu\_mc.Menu5.\_alpha = 70;  
this.Menu\_mc.Menu1.onRollOver = function() {  
Fade = new Tween(this, “\_alpha”, ease.Out, 70, 100, .2, true);  
playSound();  
};  
this.Menu\_mc.Menu1.onRollOut = function() {  
FadeOut = new Tween(this, “\_alpha”, ease.Out, 100, 70, .2, true);  
};  
this.Menu\_mc.Menu2.onRollOver = function() {  
Fade = new Tween(this, “\_alpha”, ease.Out, 70, 100, .2, true);  
playSound();  
};  
this.Menu\_mc.Menu2.onRollOut = function() {  
Fade.yoyo();  
};  
this.Menu\_mc.Menu3.onRollOver = function() {  
Fade = new Tween(this, “\_alpha”, ease.Out, 70, 100, .2, true);  
playSound();  
};  
this.Menu\_mc.Menu3.onRollOut = function() {  
Fade.yoyo();  
};  
this.Menu\_mc.Menu4.onRollOver = function() {  
Fade = new Tween(this, “\_alpha”, ease.Out, 70, 100, .2, true);  
playSound();  
};  
this.Menu\_mc.Menu4.onRollOut = function() {  
Fade.yoyo();  
};  
this.Menu\_mc.Menu5.onRollOver = function() {  
Fade = new Tween(this, “\_alpha”, ease.Out, 70, 100, .2, true);  
playSound();  
};  
this.Menu\_mc.Menu5.onRollOut = function() {  
Fade.yoyo();  
};
