# Button actions on child movieclips

**URL:** <https://forum.kirupa.com/t/button-actions-on-child-movieclips/321741>\
**Category:** Uncategorized\
**Created:** [April 29, 2011, 5:50am UTC](https://forum.kirupa.com/t/button-actions-on-child-movieclips/321741 "2011-04-29T05:50:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrsnoogle](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mrsnoogle](https://forum.kirupa.com/u/mrsnoogle)\
**Post date:** [April 29, 2011, 5:50am UTC](https://forum.kirupa.com/t/button-actions-on-child-movieclips/321741/1 "2011-04-29T05:50:20Z")

</div>

Hi there 🙂  
I am having issues trying to get a simple button to make the playhead jump to a certain frame when pressed. I have the main timeline and then have a movieclip which has buttons inside of it and actionscript applied in the movieclips timeline. Is this a no no? that is should all actions go on the main timeline?

If this is so then does anyone know why i keep getting an error that it can’t find the instance named button inside the movieclip? THis is the code i am using if it helps…

portfolioButton.addEventListener(MouseEvent.MOUSE\_DOWN, mouseDownHandler);  
function mouseDownHandler(event:MouseEvent):void {  
gotoAndPlay(100);  
}

… any help would be great!  
… Camm
