Problems with Multiple Photo Slideshows in One Movie

First of all, I need to thank everyone here for the great Forum and Site content. I’ve gone from having no idea how to pull off what I needed, to having it almost complete using the tutorials here and the forums to help out. I’m now at a point where I need to creat a new post though as I’m unable to find an answer for this last one searching the forums.

Ok! So I’ve used Kirupa’s tutorial for a Photo Gallery to create a series of galleries in one Flash movie. [url=“http://www.clairephotoflash.com”]The site is up and working if you would like take at look at it.

I put the galleries together, left out the buttons and added the setInterval code. I was getting some wacky results. When I entered the first, all was ok. Then I would go to a different part of the site then enter again to find that the interval would be all over the place. Some photos showed for a 3 seconds, some for a split second …

I came to the conclusion that it may be that I was not clearing my interval. What I ended up doing was simply adding a new frame to my gallery scene with:

clearInterval(switchInterval);

In my first frame, then I’ve got the slideshow code in the second frame where the slideshow plays. I’ve added:

switchInterval = setInterval(this,"changePhoto", 5000, 1);

to the end of that code.

This seemed to do the trick! I could move in and out with no problems. My client checked today and on her home computer using a High Speed Lite (5 times faster than dial up) connection, she starts to experience the whacky intervals again. Funny thing is, on my cable connection, all is fine and when she is at work on a cable connection, all is fine too.

I just realized that I did not have the semi-colon at the end of that switchInterval line … oh man … could that be the problem? It’s weird that Flash didn’t pick that up and give me an error though … I always hit the ‘Check Syntax’ button (a habbit from Director with the ‘Recompile’ button).

What I’m thinking is, it may just be a naming issue. I’ve got 4 galleries on the site. I’m wondering if my setInterval variable should be different (IE: gallery1interval =, gallery2interval = …

But then again, it may have nothing to with the setInterval!

Any ideas?