# Buttons

**URL:** <https://forum.kirupa.com/t/buttons/2743>\
**Category:** Uncategorized\
**Created:** [April 22, 2002, 2:05pm UTC](https://forum.kirupa.com/t/buttons/2743 "2002-04-22T14:05:52Z")\
**Posts on this page:** 3\
**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:** [April 22, 2002, 2:05pm UTC](https://forum.kirupa.com/t/buttons/2743/1 "2002-04-22T14:05:52Z")

</div>

I need some help with this:\r\rI want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don’t want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)\rCan I use on button on a separate layer with the same action set?\rI tried something like that, but it didn’t work:\r\ron (release) {\rthisframe =+1\r}\r\rand\r\ron (release) {\rthisframe =-1\r}\rbut it didn’t work. I’m kind of new to any action script other than gotAndPlay, easy functions and all that.\r\rTHX\r\rDon Albino

---

<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:** [April 22, 2002, 2:43pm UTC](https://forum.kirupa.com/t/buttons/2743/2 "2002-04-22T14:43:09Z")

</div>

try\r\ron(release){\rnextFrame()\r}\r\ror \r\ron(release){\rprevFrame()\r}

---

<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:** [April 22, 2002, 7:10pm UTC](https://forum.kirupa.com/t/buttons/2743/3 "2002-04-22T19:10:42Z")

</div>

I hate to admit it, but\rYOU MADE MY DAY\r\rThx a lot
