So it’s been two day’s of almost pulling my hair out… Here’s the problem
I wrote a slideshow class file. Everything works perfectly when on a standalone .swf
However, when loaded into a new movie it still works great but if you navigate to another section of the site, which in this case unloads the slideshow .swf from the holder mc and loads a new section into it, and then go back to slideshow (unloads other section and loads slideshow.swf) it starts to act all screwy…
So I’ve came to the conclusion that it has to do with the setInterval that I used in it. There is a method that pauses the image with setInterval and then calls the fadeOut method (which goes on to the next image). It seems to only act wierd if I navigate away from this section while the image is still (which means the setInterval is doing it’s thing and is not cleared).
Is there a way to fix this??? I’ve tried a bunch of different things and none seem to work
here is a snippet from my class:
private function holdSlide ():Void
{
var tempObj:Object = this;
var holdInterval = setInterval(pauseSlideshow, __delay);
// _global.setTimeout (pauseSlideshow, __delay);
function pauseSlideshow() {
clearInterval(holdInterval);
tempObj.nextImage();
}
}