# Button within Movie Clip won't link!

**URL:** <https://forum.kirupa.com/t/button-within-movie-clip-wont-link/321124>\
**Category:** flash\
**Created:** [April 11, 2011, 3:13pm UTC](https://forum.kirupa.com/t/button-within-movie-clip-wont-link/321124 "2011-04-11T15:13:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmyh03](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jimmyh03](https://forum.kirupa.com/u/jimmyh03)\
**Post date:** [April 11, 2011, 3:13pm UTC](https://forum.kirupa.com/t/button-within-movie-clip-wont-link/321124/1 "2011-04-11T15:13:06Z")

</div>

Hey, I’m very new to flash and thought I’d join the forums as I’m sure to have many problems in future!

My issue at the moment is trying to make a Button (early\_btn) within a Movie Clip, on the 10th frame of the MC, go to frame 2 on the stage when clicked

Here’s the code I have:

```auto
function histEarly(event:MouseEvent):void{
	event.target.parent.gotoAndStop(2);
}

early_btn.addEventListener(MouseEvent.CLICK, histEarly);

```

There are no errors when exported but nothings happening!

Should the AS be in the MovieClip where the button is? Or should it be on the stage? Or even a completely different code?!

Thanks!

Jimmy
