# Nested MC Problem {AS2}

**URL:** https://forum.kirupa.com/t/nested-mc-problem-as2/249411
**Category:** flash
**Created:** [January 18, 2008, 1:02pm UTC](https://forum.kirupa.com/t/nested-mc-problem-as2/249411 "2008-01-18T13:02:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![charldesign](https://avatars.discourse-cdn.com/v4/letter/c/90ced4/32.png) [@charldesign](https://forum.kirupa.com/u/charldesign)
#### Post date: [January 18, 2008, 1:02pm UTC](https://forum.kirupa.com/t/nested-mc-problem-as2/249411/1 "2008-01-18T13:02:55Z")

</div>

Hey there :gm:

I’ve got a little problem with a slide out menu I’m building with nested movie  
clips that have onRollover events. My problem is that the menu slides out  
fine but I’m not to sure how i would do onRollOut for th menu.

I would deeply appriciate some help.

\*\*::My code on first frame::

\*\*#include “mc\_tween2.as”  
this.stop();

panel.onRollOver = navOver;

function navOver(){  
this.onEnterFrame = slideNav;  
delete this.onRollOver;  
}

function slideNav() {  
this.yO = this.\_y;  
this.slideTo("\_y", this.yO - 102, 0.5,“easeInOutQuart”);  
delete this.onEnterFrame;  
}

Thanks in advance.  
Charl.
