# Going forward and back

**URL:** <https://forum.kirupa.com/t/going-forward-and-back/5566>\
**Category:** Uncategorized\
**Created:** [September 16, 2002, 1:17am UTC](https://forum.kirupa.com/t/going-forward-and-back/5566 "2002-09-16T01:17:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kellys](https://avatars.discourse-cdn.com/v4/letter/k/22d042/32.png) [@kellys](https://forum.kirupa.com/u/kellys)\
**Post date:** [September 16, 2002, 1:17am UTC](https://forum.kirupa.com/t/going-forward-and-back/5566/1 "2002-09-16T01:17:38Z")

</div>

Hi all,

Super easy question I hope.  
I want to allow users to scroll through some photos simply using a forward arrow and a back arrow.

I only have to load about 10 photos so can probably keep everything in one movie.

But, what code do I associate with the back/forward arrow buttons.

Argh, I know this must seem stupid to many of you. Sorry and thanks

Kellys

---

<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 16, 2002, 1:40am UTC](https://forum.kirupa.com/t/going-forward-and-back/5566/2 "2002-09-16T01:40:10Z")

</div>

rather simple way and kinda dodgy but hey…insert 10 keyframes and put a photo on each frame then put the followin actions on your buttons…

next button code…

on (release) {  
nextFrame();  
}

previous button code…

on (release) {  
prevFrame();  
}

and your done…hope thats what you wanted

---

<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 16, 2002, 1:43am UTC](https://forum.kirupa.com/t/going-forward-and-back/5566/3 "2002-09-16T01:43:40Z")

</div>

thanks Joso,

I also just found this which seems about right (though I think your way works too):

[http://www.kirupa.com/developer/mx/photogallery.asp](http://www.kirupa.com/developer/mx/photogallery.asp)

kellys

---

<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 16, 2002, 7:46am UTC](https://forum.kirupa.com/t/going-forward-and-back/5566/4 "2002-09-16T07:46:21Z")

</div>

Careful with the tute. Exploding material…
