# Button inside movieclip not working properly

**URL:** <https://forum.kirupa.com/t/button-inside-movieclip-not-working-properly/228174>\
**Category:** Uncategorized\
**Created:** [June 5, 2007, 9:36pm UTC](https://forum.kirupa.com/t/button-inside-movieclip-not-working-properly/228174 "2007-06-05T21:36:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casadelun](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/casadelun/32/3705_2.png) [@casadelun](https://forum.kirupa.com/u/casadelun)\
**Post date:** [June 5, 2007, 9:36pm UTC](https://forum.kirupa.com/t/button-inside-movieclip-not-working-properly/228174/1 "2007-06-05T21:36:14Z")

</div>

Hi -

Goal: I’m trying to create a menu bar that will let me view movie clips depending on which button I select.

Problem: At the start of the main timeline when the menu bar appears, I clicked on one of the button on the menu bar, and it takes me directly to a movie clip associated with it. While in the middle of that movie clip, I want to click on the same button (on the menu bar) again to take me to the beginning of that movie clip. However, when I did it the second time around, nothing happens.

On that button, the action is:

on(release) {  
\_root.gotoAndStop(2);  
}

On the movie clip timeline, play(); is in the action layer on frame 1.

If I’m in the middle of the movieclip (that is in frame 2 of the main timeline), how come when I click on the button, it does not go to \_root --\> frame 2 --\> play movie clip --\> start at the beginning???

Any help is appreciated.

Thanks.
