Button actions on child movieclips

Hi there :slight_smile:
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