# If reached a certain frame - stop

**URL:** <https://forum.kirupa.com/t/if-reached-a-certain-frame-stop/164151>\
**Category:** Uncategorized\
**Created:** [September 28, 2005, 9:07pm UTC](https://forum.kirupa.com/t/if-reached-a-certain-frame-stop/164151 "2005-09-28T21:07:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![1234567](https://avatars.discourse-cdn.com/v4/letter/1/9de053/32.png) [@1234567](https://forum.kirupa.com/u/1234567)\
**Post date:** [September 28, 2005, 9:07pm UTC](https://forum.kirupa.com/t/if-reached-a-certain-frame-stop/164151/1 "2005-09-28T21:07:20Z")

</div>

Hi, can you, please help me with this. I have a button, it functions like this

on (release) {  
nextFrame();

I want this action stop at a certain frame. So nothing happens when you click a button when it reached a certain frame.

Thank you.
