I could be mistaken of course… here is the code.
[AS]
picNames = [“pic1.jpg”, “pic2.jpg”, “pic3.jpg”, “pic4.jpg”, “pic5.jpg”, “pic6.jpg”];
picNamesB = [“pic7.jpg”, “pic8.jpg”, “pic9.jpg”, “pic10.jpg”, “pic11.jpg”, “pic12.jpg”];
pic1();
pic2();
function pic1() {
for (i=0; i<picNames.length; i++) {
clipa = this.createEmptyMovieClip(“clipa”+i, +i);
clipa._y = 10;
clipa._x = i90;
loadMovie(picNames, “clipa”+i);
trace(“function pic1”);
}
}
function pic2() {
for (i=0; i<picNamesB.length; i++) {
clipb = this.createEmptyMovieClip(“container”+i, +i);
clipb._y = 100;
clipb._x = i90;
loadMovie(picNamesB, “container”+i);
trace(“function pic2”);
}
}
[/AS]
I can’t understand, I’ve tried several things changing variables so that they are different and such… I dont understand why only the last function will run… if i remove pic2(); then pic1(); will run if I put both then pic2(); will run and not pic1();…
i’m confused