# Button inside movie clip

**URL:** <https://forum.kirupa.com/t/button-inside-movie-clip/259936>\
**Category:** flash\
**Created:** [May 10, 2008, 1:45pm UTC](https://forum.kirupa.com/t/button-inside-movie-clip/259936 "2008-05-10T13:45:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phsyco](https://avatars.discourse-cdn.com/v4/letter/p/3bc359/32.png) [@Phsyco](https://forum.kirupa.com/u/Phsyco)\
**Post date:** [May 10, 2008, 1:45pm UTC](https://forum.kirupa.com/t/button-inside-movie-clip/259936/1 "2008-05-10T13:45:47Z")

</div>

i have a movie clip with a button inside, i cant get the button to work. i want the button on release go to frame 37. anybody that can help?

---

<div class="post-metadata">

**Author:** ![pablo\_2006](https://avatars.discourse-cdn.com/v4/letter/p/c67d28/32.png) [@pablo\_2006](https://forum.kirupa.com/u/pablo_2006)\
**Post date:** [May 10, 2008, 10:18pm UTC](https://forum.kirupa.com/t/button-inside-movie-clip/259936/2 "2008-05-10T22:18:31Z")

</div>

\>i want the button on release go to frame 37

Which time line? The following will move the main timeline to frame 37 if a button inside a movie called myMovieClip is clicked.

```auto

myMovieClip.myButton.onRelease=function(){
gotoAndStop(37);
}

```

Make sure all your movies/buttons have instance names in the properties panel
