zodiacc
12-28-2010, 02:50 PM
Hi guys,
I am using a setInterval to delay a movie clip from playing on a website designed in flash 8 for a few seconds and then play after that time but somehow after a few minutes it starts to flip through each page on the website and keeps looping. Page transitions have stops in place so I cant understand why it does what it does. Is this code correct or am I missing something altogether:
stop();
var id = setInterval(go, 2000);
function go() {
clearInterval(id);
gotoAndPlay(_currentframe+1);
}
I put it on the first frame of the clip and I have a stop(); function on the last frame. At first it seemed fine but as I said after a few minutes it just does its own thing and flips through the pages of the site which is really annoying. Any advice would be appreciated.
Thanks
zodiacc:D
I am using a setInterval to delay a movie clip from playing on a website designed in flash 8 for a few seconds and then play after that time but somehow after a few minutes it starts to flip through each page on the website and keeps looping. Page transitions have stops in place so I cant understand why it does what it does. Is this code correct or am I missing something altogether:
stop();
var id = setInterval(go, 2000);
function go() {
clearInterval(id);
gotoAndPlay(_currentframe+1);
}
I put it on the first frame of the clip and I have a stop(); function on the last frame. At first it seemed fine but as I said after a few minutes it just does its own thing and flips through the pages of the site which is really annoying. Any advice would be appreciated.
Thanks
zodiacc:D