# Navigation buttons

**URL:** <https://forum.kirupa.com/t/navigation-buttons/63533>\
**Category:** Uncategorized\
**Created:** [September 7, 2004, 6:52pm UTC](https://forum.kirupa.com/t/navigation-buttons/63533 "2004-09-07T18:52:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![todd71](https://avatars.discourse-cdn.com/v4/letter/t/ac8455/32.png) [@todd71](https://forum.kirupa.com/u/todd71)\
**Post date:** [September 7, 2004, 6:52pm UTC](https://forum.kirupa.com/t/navigation-buttons/63533/1 "2004-09-07T18:52:42Z")

</div>

ok im not grasping this…lol…how do i make, or code rather, buttons that can be used to go forward or back without having to do the ‘gotoandstop’ for each frame?

ive been researching the best way and all the reading is making me sleepy…lol…

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:** [September 7, 2004, 7:11pm UTC](https://forum.kirupa.com/t/navigation-buttons/63533/2 "2004-09-07T19:11:56Z")

</div>

just select what you want to be the button, convert 2 a button, and then unsing actionscript selct goto next frame and stop, you can then use the same button over and over

---

<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 7, 2004, 7:35pm UTC](https://forum.kirupa.com/t/navigation-buttons/63533/3 "2004-09-07T19:35:05Z")

</div>

here ya go:

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

```

---

<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 7, 2004, 7:35pm UTC](https://forum.kirupa.com/t/navigation-buttons/63533/4 "2004-09-07T19:35:50Z")

</div>

alternatively, you could use the \_currentframe property like this:

```auto
on (release) {
	gotoAndStop(_currentframe+1);
}

```

hope this helps

---

<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 7, 2004, 7:36pm UTC](https://forum.kirupa.com/t/navigation-buttons/63533/5 "2004-09-07T19:36:14Z")

</div>

yep there it was…i just couldnt for the life of me find that ‘nextframe’ thing…lol…doh…one of those days…thanks for the help…🙂

---

<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 7, 2004, 7:37pm UTC](https://forum.kirupa.com/t/navigation-buttons/63533/6 "2004-09-07T19:37:56Z")

</div>

or, if you want to go backwards:

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

```

or (notice it’s not in another post :stunned: )

```auto
on (release) {
	gotoAndStop(_currentframe-1);
}

```

lots of ways 😃
