# Nested button mc onRelease not working

**URL:** https://forum.kirupa.com/t/nested-button-mc-onrelease-not-working/298849
**Category:** flash
**Created:** [October 26, 2009, 12:15pm UTC](https://forum.kirupa.com/t/nested-button-mc-onrelease-not-working/298849 "2009-10-26T12:15:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Frode\_Frank](https://avatars.discourse-cdn.com/v4/letter/f/e274bd/32.png) [@Frode\_Frank](https://forum.kirupa.com/u/Frode_Frank)
#### Post date: [October 26, 2009, 12:15pm UTC](https://forum.kirupa.com/t/nested-button-mc-onrelease-not-working/298849/1 "2009-10-26T12:15:12Z")

</div>

Hi guys. I’m having some problems with a menu. I have a movie clip that plays on rollover, revealing a list of other mc’s. These are nested within the first movie clip. For some reason the nested mc’s doesn’t react to an onRelease function.

Here’s my code:

```auto

mc1.onRollOver = function() {
    this.play();
}

mc1.onRollOut = function() {
    this.gotoAndStop(1);
}

// The nested mc – this is the part not working

mc1.mc2.onRelease = function() {
    trace("action");
}

```

I have tried to avoid the problem with a hit test on “mc1”, but I haven’t figured a logical way to use it. As of now, the “play();” get’s called constantly while I’m hovering “mc1”.

I haven’t worked with flash in a long time. Perhaps I’m missing something very basic here.
