# Clearing the actions on a specific frame

**URL:** <https://forum.kirupa.com/t/clearing-the-actions-on-a-specific-frame/319667>\
**Category:** flash\
**Created:** [February 28, 2011, 10:30pm UTC](https://forum.kirupa.com/t/clearing-the-actions-on-a-specific-frame/319667 "2011-02-28T22:30:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelchandler](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@michaelchandler](https://forum.kirupa.com/u/michaelchandler)\
**Post date:** [February 28, 2011, 10:30pm UTC](https://forum.kirupa.com/t/clearing-the-actions-on-a-specific-frame/319667/1 "2011-02-28T22:30:42Z")

</div>

I have this timer code on the first frame of the movie.

```auto
function pause() {
	play();
	clearInterval(timer);
}

stop();
timer = setInterval(pause, 3000);

```

And I want it to perform this timer until I press a button on the main stage.

I found some information about clearing the actions from a movie clip but I didn’t see much about clearing it from a frame.

Any ideas?
