# Simple Gallery with next and Prev buttons

**URL:** <https://forum.kirupa.com/t/simple-gallery-with-next-and-prev-buttons/264544>\
**Category:** Uncategorized\
**Created:** [June 27, 2008, 12:22am UTC](https://forum.kirupa.com/t/simple-gallery-with-next-and-prev-buttons/264544 "2008-06-27T00:22:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kz0007](https://avatars.discourse-cdn.com/v4/letter/k/dc4da7/32.png) [@kz0007](https://forum.kirupa.com/u/kz0007)\
**Post date:** [June 27, 2008, 12:22am UTC](https://forum.kirupa.com/t/simple-gallery-with-next-and-prev-buttons/264544/1 "2008-06-27T00:22:17Z")

</div>

Im trying to create a simple gallery of images with a next and previous button…

when you click next the current image fades out and the next one fades in… BUT if you hit PREVIOUS, the current image fades out and the previous one fades in… Its basic timeline control but its driving me bonkers…  
PLEASE HELP…  
thank you…  
k

---

<div class="post-metadata">

**Author:** ![snickelfritz](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@snickelfritz](https://forum.kirupa.com/u/snickelfritz)\
**Post date:** [June 27, 2008, 1:35am UTC](https://forum.kirupa.com/t/simple-gallery-with-next-and-prev-buttons/264544/2 "2008-06-27T01:35:42Z")

</div>

Here’s a basic slideshow structure that does exactly what you described.  
Simply replace the colored movieclips with your images.  
Tweenmax is required for the transitions.  
[INDENT]_time-saving hint: use the photoshop stack script ([COLOR=“Blue”]File\>Scripts\>Load Files into Stack[/COLOR]) to open a folder full images as layers.  
Save as PSD, then import the PSD into Flash as keyframes._[/INDENT]  
[http://www.byrographics.com/AS3/clickSlideshow/clickSlideshow.html](http://www.byrographics.com/AS3/clickSlideshow/clickSlideshow.html)
