# Help! AS3 Slideshow

**URL:** <https://forum.kirupa.com/t/help-as3-slideshow/300283>\
**Category:** flash\
**Created:** [November 18, 2009, 6:12pm UTC](https://forum.kirupa.com/t/help-as3-slideshow/300283 "2009-11-18T18:12:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kratos2010](https://avatars.discourse-cdn.com/v4/letter/k/3d9bf3/32.png) [@kratos2010](https://forum.kirupa.com/u/kratos2010)\
**Post date:** [November 18, 2009, 6:12pm UTC](https://forum.kirupa.com/t/help-as3-slideshow/300283/1 "2009-11-18T18:12:02Z")

</div>

I’m trying to recreate this slideshow where you can scan through the gallery and click on the image to load an external swf in it’s place.

This is exactly what I want to recreate.

[http://www.guyseese.com/](http://www.guyseese.com/)

so far I got this code:

/----start code —//

stop();

prev\_btn.addEventListener(MouseEvent.CLICK, prevClick);

next\_btn.addEventListener(MouseEvent.CLICK, nextClick);

function nextClick (event:MouseEvent): void  
{  
if(this.currentFrame == this.totalFrames)  
{  
gotoAndStop(1);  
}  
else {  
nextFrame();  
}

}

function prevClick (event:MouseEvent)  
{  
if(this.currentFrame == 1)  
{  
gotoAndStop(this.totalFrames);  
}  
else {  
prevFrame();  
}

}

//----end code -----//

thanks!

Kratos2010
