# Replaying Animation at the end

**URL:** https://forum.kirupa.com/t/replaying-animation-at-the-end/6504
**Category:** flash
**Created:** [October 9, 2002, 6:42am UTC](https://forum.kirupa.com/t/replaying-animation-at-the-end/6504 "2002-10-09T06:42:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Reggit](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@Reggit](https://forum.kirupa.com/u/Reggit)
#### Post date: [October 9, 2002, 6:42am UTC](https://forum.kirupa.com/t/replaying-animation-at-the-end/6504/1 "2002-10-09T06:42:13Z")

</div>

I am sure this is in one of the tutorials (I’ve read through the 3 that I thought it would be in) and I couldn’t find this, so…

… At the end of my animation, I have a stop function with 2 buttons. I’d like one of them to go off site, and the other to replay the movie. I’ve got the off site one to work, but I can’t figure out how to replay. (I am completely new to actionscripting.) If someone could help, it would be … well … Very helpful! 😃 Thanks!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 9, 2002, 6:51am UTC](https://forum.kirupa.com/t/replaying-animation-at-the-end/6504/2 "2002-10-09T06:51:46Z")

</div>

Have your button on the main timeline of course…

Add these actions…

```auto
on (release){
gotoAndPlay(1);
}

```

That takes you back to frame 1 and replays your animation.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 9, 2002, 6:53am UTC](https://forum.kirupa.com/t/replaying-animation-at-the-end/6504/3 "2002-10-09T06:53:35Z")

</div>

You = Awesome. Thanks again! ^^

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 9, 2002, 6:55am UTC](https://forum.kirupa.com/t/replaying-animation-at-the-end/6504/4 "2002-10-09T06:55:12Z")

</div>

No problem =)
