# Button nested inside 2 movieclips not working

**URL:** <https://forum.kirupa.com/t/button-nested-inside-2-movieclips-not-working/314482>\
**Category:** flash\
**Created:** [September 29, 2010, 9:13pm UTC](https://forum.kirupa.com/t/button-nested-inside-2-movieclips-not-working/314482 "2010-09-29T21:13:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhilez](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nhilez](https://forum.kirupa.com/u/nhilez)\
**Post date:** [September 29, 2010, 9:13pm UTC](https://forum.kirupa.com/t/button-nested-inside-2-movieclips-not-working/314482/1 "2010-09-29T21:13:51Z")

</div>

I have a button that is inside a movieclip, which is in turn inside another movieclip. It seems that my event listener is not firing when the button is clicked. I set up the listener:

```auto
MovieClip2.MovieClip1.ButtonInsideMovieClip1.addEventListener(MouseEvent.MOUSE_UP, functionToRun);

```

Unfortunately when I click on the button, the function is not executed. Does AS3 not allow this type of nesting?  
Any help is appreciated.
