# New to flash, need help with buttons following an animation?

**URL:** <https://forum.kirupa.com/t/new-to-flash-need-help-with-buttons-following-an-animation/33594>\
**Category:** flash\
**Created:** [October 21, 2003, 11:36am UTC](https://forum.kirupa.com/t/new-to-flash-need-help-with-buttons-following-an-animation/33594 "2003-10-21T11:36:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjmaltby](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@mjmaltby](https://forum.kirupa.com/u/mjmaltby)\
**Post date:** [October 21, 2003, 11:36am UTC](https://forum.kirupa.com/t/new-to-flash-need-help-with-buttons-following-an-animation/33594/1 "2003-10-21T11:36:32Z")

</div>

Hi this is probably a really stupid question but I’ve just started to use Flash and unsuprisingly I have become stuck. I’ve had a look through the tutorials but either I don’t know what I’m looking for or its just not there.

Anyway I have created a simple animation and after the animation I want the image to turn into a button - I seem to have done that but whenever I view the animation it just keeps looping and you get to see the button for a millisecond before starting the animation again. I saved it as an .swf to see if it just looped in the preview mode but it still loops? I’m sure there is a really simple soloution but as I say I’m totally new to this.

Also how to you get the buttons in flash to link to another animation - for example if you click the button it plays an .swf file? (…and stops at the end without looping!)

Thank you for any helo you can give,

Matt

---

<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 21, 2003, 11:40am UTC](https://forum.kirupa.com/t/new-to-flash-need-help-with-buttons-following-an-animation/33594/2 "2003-10-21T11:40:27Z")

</div>

JUst put a stop in the last frame of ur main screen…Double click on the frame and then put stop();

I think that will 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:** [October 21, 2003, 11:47am UTC](https://forum.kirupa.com/t/new-to-flash-need-help-with-buttons-following-an-animation/33594/3 "2003-10-21T11:47:51Z")

</div>

Thats great thank you so much!

Do you know how to get the buttons to link to other files or even other frames along the time line?

---

<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 21, 2003, 12:21pm UTC](https://forum.kirupa.com/t/new-to-flash-need-help-with-buttons-following-an-animation/33594/4 "2003-10-21T12:21:09Z")

</div>

There are many things you can link to so what exactly do you want it to link to?

If you want it to link to another html page then use something like this:

```auto
on (release) {
getURL("yourpage.html","_blank");
}

```

If you want it to go to another frame then use something like this:

```auto
on (release) {
gotoAndStop(framenumberhere);
}

```

There are other setups as well so you’ll have to be more specific.

---

<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 21, 2003, 12:31pm UTC](https://forum.kirupa.com/t/new-to-flash-need-help-with-buttons-following-an-animation/33594/5 "2003-10-21T12:31:58Z")

</div>

You’ve been very helpful thank you! I’ve managed to do exactly what I set out to do.

By the way it was linking to another frame so the AS you provided worked perfectly!

Thank you again!:thumb:

---

<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 21, 2003, 12:35pm UTC](https://forum.kirupa.com/t/new-to-flash-need-help-with-buttons-following-an-animation/33594/6 "2003-10-21T12:35:37Z")

</div>

No problem and welcome to the forum. =)
