I am having a problem with some code using the setInterval command. I have a movie that is 20 frames long. I have several buttons (of course) and in each button I have 2 layers. One layer is text and the other layer has an MC on the 'over' and 'down' state. I added this bit of code to pause my MC for 1.5 seconds and then to loop itself:
When I roll off my button, my whole movie starts over again from frame one!! What am I doing wrong, this code works in other movies I've created.Code:stop(); function goNext() { gotoAndPlay("start"); clearInterval(myInterval); } myInterval = setInterval(goNext, 1500);
Thanks,
Phil




Reply With Quote