Here is a code segment (sorry about the messy formatting). I am trying to make my thumbnails appear one after another in order (not in an arbitrary order). I think it’s the for loop that is messing it up. Or I have the onEnterFrame incorrect.
I’m still not sure I understand the onEnterFrame very well…
Any guidance would be much appreciated
for(i=1;i<=imageArray.length;i++){
var thumbMC = _root.main.thumbscroller.createEmptyMovieClip("thumbHolder"+i, 199+i);
var thumbPicHolder=thumbMC.createEmptyMovieClip("thumbPicHolder",12);
if(i<=10){
_root.main.thumbscroller["thumbHolder"+i]._x=2 ;
_root.main.thumbscroller["thumbHolder"+i]._y= 0 + (i-1) * 45;
}
else if(i>10 && i<=20){
_root.main.thumbscroller["thumbHolder"+i]._x= 47 ;
_root.main.thumbscroller["thumbHolder"+i]._y= 0 + (i-11) * 45;
}
thumbPicHolder._alpha=0;
loadMovie(path+imageArray[i-1],thumbPicHolder);
thumbPicHolder.onEnterFrame=function(){
var total =thumbPicHolder.getBytesTotal(), loaded = thumbPicHolder.getBytesLoaded();
if (total != 0 && Math.round(loaded/total && thumbPicHolder._width>1) == 1){
thumbPicHolder._alpha=100;
delete thumbPicHolder.onEnterFrame;
}
else{
trace(loaded + "/" + total);
trace("loading next thumb");}
};