# Stopping a rewind

**URL:** https://forum.kirupa.com/t/stopping-a-rewind/290036
**Category:** flash
**Created:** [June 8, 2009, 10:43pm UTC](https://forum.kirupa.com/t/stopping-a-rewind/290036 "2009-06-08T22:43:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![graham199](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@graham199](https://forum.kirupa.com/u/graham199)
#### Post date: [June 8, 2009, 10:43pm UTC](https://forum.kirupa.com/t/stopping-a-rewind/290036/1 "2009-06-08T22:43:27Z")

</div>

I have a rewind button called previous\_s1 but I would like it to rewind ten frames and then stop. It would also work if I can make it stop on a certain frame. Does anyone know how to do this. This is the code I have so far but it rewinds the entire movie.

previous\_s1.addEventListener(MouseEvent.CLICK,previouss1);  
function previouss1(event:MouseEvent):void {  
sketchesmc.addEventListener(Event.ENTER\_FRAME,rewind);  
}  
function rewind(event:Event):void  
{  
sketchesmc.prevFrame();  
}
