# ReWind

**URL:** <https://forum.kirupa.com/t/rewind/182705>\
**Category:** flash\
**Created:** [March 20, 2006, 9:44pm UTC](https://forum.kirupa.com/t/rewind/182705 "2006-03-20T21:44:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoonDock](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/boondock/32/1188_2.png) [@BoonDock](https://forum.kirupa.com/u/BoonDock)\
**Post date:** [March 20, 2006, 9:44pm UTC](https://forum.kirupa.com/t/rewind/182705/1 "2006-03-20T21:44:43Z")

</div>

How can I tell an external .swf loaded into a container movieclip to rewind from a particular point using a button outside of the external .swf ?

---

<div class="post-metadata">

**Author:** ![dreeft](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@dreeft](https://forum.kirupa.com/u/dreeft)\
**Post date:** [March 21, 2006, 12:17am UTC](https://forum.kirupa.com/t/rewind/182705/2 "2006-03-21T00:17:12Z")

</div>

I assume you mean rewind back to the start… Therefore you just do: container.gotoAndPlay(1)

---

<div class="post-metadata">

**Author:** ![Templarian](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/templarian/32/7152_2.png) [@Templarian](https://forum.kirupa.com/u/Templarian)\
**Post date:** [March 21, 2006, 1:07am UTC](https://forum.kirupa.com/t/rewind/182705/3 "2006-03-21T01:07:09Z")

</div>

container.gotoAndStop(container.\_currentframe-1);  
put it on and enterframe and when its activated it will look like its rewinding at a 1:1 ratio. (minuse to to make it go faster ect.).

//edit, actually if you make a \_global.framedirection = 1 to -1 you could just change the variable in the enterframe like 1 would be normal play and 0 would be stop and -1 would be rewind.

container.gotoAndStop(container.\_currentframe-\_global.framedirection);

example(stop):  
btn.onRelease = function(){  
\_global.framedirection = 0;  
}

---

<div class="post-metadata">

**Author:** ![BoonDock](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/boondock/32/1188_2.png) [@BoonDock](https://forum.kirupa.com/u/BoonDock)\
**Post date:** [March 21, 2006, 1:20pm UTC](https://forum.kirupa.com/t/rewind/182705/4 "2006-03-21T13:20:37Z")

</div>

Sorry Dreeft but Temp was on the right track, I didn’t want the movie to just go back to 1 and start playing again, i wanted it to rewind itself back to frame 1…(and play all that happened on the way back to 1)

---

<div class="post-metadata">

**Author:** ![joene](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@joene](https://forum.kirupa.com/u/joene)\
**Post date:** [March 21, 2006, 1:31pm UTC](https://forum.kirupa.com/t/rewind/182705/5 "2006-03-21T13:31:45Z")

</div>

You could also use the prevFrame() and nextFrame() functions

---

<div class="post-metadata">

**Author:** ![BoonDock](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/boondock/32/1188_2.png) [@BoonDock](https://forum.kirupa.com/u/BoonDock)\
**Post date:** [March 21, 2006, 1:48pm UTC](https://forum.kirupa.com/t/rewind/182705/6 "2006-03-21T13:48:53Z")

</div>

Hey Joene could you explain this a little bit more? (thanks!)

---

<div class="post-metadata">

**Author:** ![pkcidstudio](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@pkcidstudio](https://forum.kirupa.com/u/pkcidstudio)\
**Post date:** [March 21, 2006, 10:29pm UTC](https://forum.kirupa.com/t/rewind/182705/7 "2006-03-21T22:29:58Z")

</div>

> [@Templarian](#):
>
> container.gotoAndStop(container.\_currentframe-1);  
> put it on and enterframe and when its activated it will look like its rewinding at a 1:1 ratio. (minuse to to make it go faster ect.).
> 
> //edit, actually if you make a \_global.framedirection = 1 to -1 you could just change the variable in the enterframe like 1 would be normal play and 0 would be stop and -1 would be rewind.
> 
> container.gotoAndStop(container.\_currentframe-\_global.framedirection);
> 
> example(stop):  
> btn.onRelease = function(){  
> \_global.framedirection = 0;  
> }

tempcould you submit a fla explaining this more, i think this is what ive been looking for for a while. feel free to pm me

---

<div class="post-metadata">

**Author:** ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)\
**Post date:** [March 21, 2006, 11:21pm UTC](https://forum.kirupa.com/t/rewind/182705/8 "2006-03-21T23:21:42Z")

</div>

> [@BoonDock](#):
>
> Hey Joene could you explain this a little bit more? (thanks!)

```auto
onEnterFrame = prevFrame;

```

:hr:
