# Buttons inside movieclip don't work

**URL:** <https://forum.kirupa.com/t/buttons-inside-movieclip-dont-work/302400>\
**Category:** Uncategorized\
**Created:** [December 29, 2009, 5:20pm UTC](https://forum.kirupa.com/t/buttons-inside-movieclip-dont-work/302400 "2009-12-29T17:20:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brown22](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@brown22](https://forum.kirupa.com/u/brown22)\
**Post date:** [December 29, 2009, 5:20pm UTC](https://forum.kirupa.com/t/buttons-inside-movieclip-dont-work/302400/1 "2009-12-29T17:20:21Z")

</div>

Hi everybody,

I’m making a flash CS4 presentation and I just made a navbar movieclip (grey rectangle) and put 6 buttons on each layer inside of it.

I put this navbar on the main movie timeline in a layer.

I keep getting this error (1120 access of undefined property) and the buttons simply don’t respond to the main timeline

Should I make a parent child reference ?

For example this code for the pause button won’t work:

pause\_btn.addEventListener (MouseEvent.CLICK, stopButtonClick);

function stopButtonClick (e:MouseEvent):void  
{

```
this.stop();

```

}

Any help would be great…
