# I need help with my Flash slideshow! (AS2)

**URL:** <https://forum.kirupa.com/t/i-need-help-with-my-flash-slideshow-as2/312566>\
**Category:** flash\
**Created:** [August 6, 2010, 8:18pm UTC](https://forum.kirupa.com/t/i-need-help-with-my-flash-slideshow-as2/312566 "2010-08-06T20:18:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhotomartCV](https://avatars.discourse-cdn.com/v4/letter/p/50afbb/32.png) [@PhotomartCV](https://forum.kirupa.com/u/PhotomartCV)\
**Post date:** [August 6, 2010, 8:18pm UTC](https://forum.kirupa.com/t/i-need-help-with-my-flash-slideshow-as2/312566/1 "2010-08-06T20:18:57Z")

</div>

I have a Flash slideshow presentation that I created for my company’s website, which can be seen on our frontpage:

> **[WAVE: Suppliers of Commercial Wire & Cable For Over 30 Years](https://www.audiovideoelectric.com/)**
>
> Your distribution partner for commercial bulk wire and cable and non-branded cost-efficient equivalents. Whatever your project demands, you can source it.

The slideshow has NEXT and PREVIOUS buttons, as well as other buttons that are used to link to other parts of our online store. The problem that I am running into is that after the first cycle, the slideshow doesn’t cycle through every slide anymore! And then eventually, after about 5 minutes, the flash plugins completely crash and my browser locks up. I think I found out that it has to do with the intervals that I put in the Actionscript 2.0 coding. I didn’t put any “clear intervals” into it and that’s why it’s screwing up, but every tutorial that I used to integrate the clearInterval function didn’t work and I have NO idea what else to do!

Can anybody help me with this?

Here’s the actionscript I used, any help would be GREATLY appreciated

Thanks!

stop();  
timeInterval = setInterval(nextphoto, 7000);  
function nextphoto(){  
if (\_root.\_currentframe == 5) {  
gotoAndPlay(1);  
}  
else {  
nextFrame();  
}  
}

- MC
