# Hopefully an easy gotoAndStop question

**URL:** <https://forum.kirupa.com/t/hopefully-an-easy-gotoandstop-question/213868>\
**Category:** Uncategorized\
**Created:** [January 23, 2007, 9:42pm UTC](https://forum.kirupa.com/t/hopefully-an-easy-gotoandstop-question/213868 "2007-01-23T21:42:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PLabrozzi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/plabrozzi/32/3205_2.png) [@PLabrozzi](https://forum.kirupa.com/u/PLabrozzi)\
**Post date:** [January 23, 2007, 9:42pm UTC](https://forum.kirupa.com/t/hopefully-an-easy-gotoandstop-question/213868/1 "2007-01-23T21:42:30Z")

</div>

Hi everyone. I have a button inside a movieclip which is inside a movie clip thats on the main timeline. When the user presses the button I want the main timeline to progress to frame 25. The actionscript I have applied to the button is…

```auto
stop();
button.onRelease = function(){
    gotoAndStop(25);
;
};

```

The problem is no matter what I set it to do, it only wants to go to frame 25 in the movieclip that it’s in. So, is there a way to specify I want it to control the main timeline instead of the timeline of the movieclip its in? I tried…

```auto
stop();
artphotosbutton.onRelease = function(){
    gotoAndStop("Scene 1", 25);
;
};

```

But that didn’t work. Thanks in advance.
