# A REPLAY button

**URL:** <https://forum.kirupa.com/t/a-replay-button/1245>\
**Category:** Uncategorized\
**Created:** [May 19, 2002, 6:43pm UTC](https://forum.kirupa.com/t/a-replay-button/1245 "2002-05-19T18:43:15Z")\
**Posts on this page:** 2\
**Page:** 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:** [May 19, 2002, 6:43pm UTC](https://forum.kirupa.com/t/a-replay-button/1245/1 "2002-05-19T18:43:15Z")

</div>

I am needing help creating a REPLAY button for a piece that I am finishing up… I know how to create the BUTTON – it’s just the script or code that I need help with… Please Note: I am a flash newbie – so, if you post a “how to” – please go step by step for me 🙂

the site where I have a flash file up is my husband’s – here is a link to it: [www.freedomictc.org](http://www.freedomictc.org)

(please don’t dog me yet… I’m just learning : /

---

<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:** [May 19, 2002, 7:20pm UTC](https://forum.kirupa.com/t/a-replay-button/1245/2 "2002-05-19T19:20:00Z")

</div>

I believe the answer you want is:

on (release)  
{  
gotoAndPlay (1);  
}

To do this, click on the button and open up the Actions Panel. If this panel is not already open you should be able to open it by clicking on a blue cursor on the bottom-right side of the screen.

Select Basic Actions, then select “On Mouse Event”.

Now, under Basic Actions again, select “Go To”.

Next to the word “Frame:”, input the number 1.
