# Button keeps jumping to next frame in movie when clicked twice

**URL:** <https://forum.kirupa.com/t/button-keeps-jumping-to-next-frame-in-movie-when-clicked-twice/201305>\
**Category:** flash\
**Created:** [September 20, 2006, 9:45am UTC](https://forum.kirupa.com/t/button-keeps-jumping-to-next-frame-in-movie-when-clicked-twice/201305 "2006-09-20T09:45:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas159](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@thomas159](https://forum.kirupa.com/u/thomas159)\
**Post date:** [September 20, 2006, 9:45am UTC](https://forum.kirupa.com/t/button-keeps-jumping-to-next-frame-in-movie-when-clicked-twice/201305/1 "2006-09-20T09:45:29Z")

</div>

Hi, i have a small problem,  
i have a button in level 0 with the code:

on (release) {  
with (\_level1) gotoAndPlay();  
with (\_level2) gotoAndPlay(7);  
}

It loads movies into level 1 and 2, the problem i am having is that when the button is clicked twice it will jump to the next frame in the movie i.e when clicked once it jumps to frame 7 as it is supposed to do but then its clicked again and jumps to frame 8

any help appreciated thanks.
