# Replay button

**URL:** <https://forum.kirupa.com/t/replay-button/63404>\
**Category:** Uncategorized\
**Created:** [September 6, 2004, 2:22pm UTC](https://forum.kirupa.com/t/replay-button/63404 "2004-09-06T14:22:48Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![511](https://avatars.discourse-cdn.com/v4/letter/5/ebca7d/32.png) [@511](https://forum.kirupa.com/u/511)\
**Post date:** [September 6, 2004, 2:22pm UTC](https://forum.kirupa.com/t/replay-button/63404/1 "2004-09-06T14:22:48Z")

</div>

Hello everyone…

I don’t have the time to read all post in this forum, so I (myabe) could help myself, but… I have a little problem with a animation… ( you can se my animation here: [www.john5.dk/horror.html](http://www.john5.dk/horror.html) )  
How do I make a “replay” button on my animation??

(When the “movie” is over, I want to click on a button, and see the “movie” again)

Hope you understand… sorry for my bad english :S

Chris…

---

<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:** [September 6, 2004, 2:26pm UTC](https://forum.kirupa.com/t/replay-button/63404/2 "2004-09-06T14:26:14Z")

</div>

You expect people to help you but you wont help yourself :roll:

on(release){  
mc\_to\_reply.gotoAndPlay(1);  
}

That should do it, place it on the replay button

---

<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:** [September 6, 2004, 2:32pm UTC](https://forum.kirupa.com/t/replay-button/63404/3 "2004-09-06T14:32:06Z")

</div>

No I don’t expect it, I just think that would be alot easier to ask, than search hours and hours on this board… 😛

anyway it dosen’t work…

---

<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:** [September 6, 2004, 2:41pm UTC](https://forum.kirupa.com/t/replay-button/63404/4 "2004-09-06T14:41:25Z")

</div>

It doesnt take hours…  
Besides it does work, if the animation is on the main timeline then replace mc\_to\_reply with \_root, or \_parent if its relative parent

Put this code on a movieclip that represents the replay button  
on(release){  
\_parent.gotoAndPlay(1);  
}

---

<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:** [September 6, 2004, 2:51pm UTC](https://forum.kirupa.com/t/replay-button/63404/5 "2004-09-06T14:51:06Z")

</div>

Well I’m a noob to flash… would you please see my .fla ??

[http://john5.dk/wallpapers/horror.fla](http://john5.dk/wallpapers/horror.fla)

😊

---

<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:** [September 6, 2004, 2:59pm UTC](https://forum.kirupa.com/t/replay-button/63404/6 "2004-09-06T14:59:16Z")

</div>

Im just sticking the fla up somewhere so you can have it, but all you need todo is give the head an instance name(in the properties area, i called it mc\_head)  
Then click the replay button, open up the actions panel and add this code 😉  
on(release){  
mc\_head.gotoAndPlay(1);  
}

Works a treat

[http://www.lounge8.com/ntshp/horror-1.swf](http://www.lounge8.com/ntshp/horror-1.swf)  
[http://www.lounge8.com/ntshp/horror-1.fla](http://www.lounge8.com/ntshp/horror-1.fla)

---

<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:** [September 6, 2004, 3:04pm UTC](https://forum.kirupa.com/t/replay-button/63404/7 "2004-09-06T15:04:16Z")

</div>

Ok … well it works! Thanks alot 😃 !

---

<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:** [September 6, 2004, 3:12pm UTC](https://forum.kirupa.com/t/replay-button/63404/8 "2004-09-06T15:12:07Z")

</div>

no probs 😉
