I think someone here could probably answer this fairly easily. I think my brain just isn’t seeing an easy solution, and i’m sure there is an easy one. I created a flash photo gallery that has the thumbnail gallery below, as per the tutorials. I added the slideshow code from the slideshow tutorial and linked it to a button. I click the button and it works great, but how do I make the same button stop the slideshow action. Here are chunks of the code, it should all look pretty similar to what is already on the tutorial.
This is the button code.
slideshowit.onRelease = function()
{
slideshow();
}
This is where i set the delay and created the slideshow function
delay = 3000;
function slideshow()
{
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow()
{
clearInterval(myInterval);
if (p == (total-1))
{
p = 0;
firstImager();
} else {
nextImager();
}
}
}
These are the functions nextImager and firstImager
function firstImager() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();
}
}
function nextImager()
{
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
}
}
What do I need to add to make that slideshowit turn off? Thanks for any help.