# onRelease with nested movieClips

**URL:** https://forum.kirupa.com/t/onrelease-with-nested-movieclips/301330
**Category:** flash
**Created:** [December 7, 2009, 9:03pm UTC](https://forum.kirupa.com/t/onrelease-with-nested-movieclips/301330 "2009-12-07T21:03:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jeancnicolas](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@jeancnicolas](https://forum.kirupa.com/u/jeancnicolas)
#### Post date: [December 7, 2009, 9:03pm UTC](https://forum.kirupa.com/t/onrelease-with-nested-movieclips/301330/1 "2009-12-07T21:03:02Z")

</div>

Hi There, this SIMPLE problem is killing me!

I have an mc, with a nested mc inside, which has a nested mc inside that.  
When I rollOver the container mc, It wont allow me to perform a onRelease with the 2nd nested mc … WHY is this?

my code will explain it visually better :::

```auto
all_mc.blue_mc.green_mc.onRelease = function()
{
    trace("ok");
}
all_mc.onRollOver = function()
{
    this._x = 300;
}

```

why doesnt it work!? And how would I get it to trace!?🅰:gas:

This is how the mc’s are nested with their instance names …

[all\_mc]  
\*\*[blue\_mc]  
\*\*\*[green\_mc][/]  
\*\*[/blue\_mc]  
[/all\_mc]

Thanks!!
