time = 5;
picNum = 1;
holder.attachMovie(“NDcred”,“CreditOne”,“1”);
countdown = function () {
time–;
if (time == 0) {
time = 5;
if (picNum == 1) {
holder.attachMovie(“NSBcred”,“CreditTwo”,“1”);
picNum = 2;
} else if (picNum == 2) {
holder.attachMovie(“SScred”,“CreditThree”,“1”);
picNum = 3;
} else if (picNum == 3) {
holder.attachMovie(“NDcred”,“CreditOne”,“1”);
picNum = 1;
}
}
};
slide = setInterval(countdown, 1000);
I have this code on one of my frames. It works well when the user goes to that section. However once the user navigates to another section, and then reenters the slideshow section, the slideshow runs faster than what i had specified.
Whats causing this and what can I do to fix it?