Hi everyone. Hoping someone can help me with this one. I have this code in the first frame of my movie:
_root.fade2.gotoAndPlay(2);
_root.fade.gotoAndPlay(2);
i = 1;
pArray = new Array("pic"+i);
_root[pArray].gotoAndPlay(2);
function goOn() {
var j = 1;
p2Array = new Array("pic"+j);
_root[p2Array].gotoAndPlay(4);
}
setInterval(goOn, 2500);
i++;
I have MCs named pic1, pic2, pic3, and pic4. Using the above code, pic1 plays frame 2, and then frame 4 well th interval is up. My question is, why is my "i" not incrementing after the interval is done, and then have pic2 gotoAndPlay(2)? I mean, nothing happens...Any ideas?
Thanks, Adam
_root.fade2.gotoAndPlay(2);
_root.fade.gotoAndPlay(2);
i = 1;
pArray = new Array("pic"+i);
_root[pArray].gotoAndPlay(2);
function goOn() {
var j = 1;
p2Array = new Array("pic"+j);
_root[p2Array].gotoAndPlay(4);
}
setInterval(goOn, 2500);
i++;
I have MCs named pic1, pic2, pic3, and pic4. Using the above code, pic1 plays frame 2, and then frame 4 well th interval is up. My question is, why is my "i" not incrementing after the interval is done, and then have pic2 gotoAndPlay(2)? I mean, nothing happens...Any ideas?
Thanks, Adam