# Go to a frame without jumping

**URL:** <https://forum.kirupa.com/t/go-to-a-frame-without-jumping/332691>\
**Category:** flash\
**Created:** [October 2, 2014, 7:43am UTC](https://forum.kirupa.com/t/go-to-a-frame-without-jumping/332691 "2014-10-02T07:43:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kayra\_Wacken](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@Kayra\_Wacken](https://forum.kirupa.com/u/Kayra_Wacken)\
**Post date:** [October 2, 2014, 7:43am UTC](https://forum.kirupa.com/t/go-to-a-frame-without-jumping/332691/1 "2014-10-02T07:43:12Z")

</div>

Hi! I have a button and a MoveClip looping.  
Is it possible that if I press the button it lets the animaton finish and then goes to the next frame or stops?

This is my code:

```auto
on (release) { movieclipname.gotoAndStop(120) }

```

But this jumps to the 120th frame, what I need is “play the rest of frames and stop at the last frame (120)”

Here is my project if you want to take a look: [https://www.dropbox.com/s/t68vde8qocq7spa/Square%20and%20Button.fla?dl=0](https://www.dropbox.com/s/t68vde8qocq7spa/Square%20and%20Button.fla?dl=0)

I want to use this on a graphic aventure game.  
Thank you so much!
