HELLO ALL!
I’ve been working on my photogallery and i have been modifying it in order to preload the jpegs(images) one at a time. But, the problem is, only one clip is gonna appear. There is really something wrong with my script most specifically in my preloading section. Can somebody help me?
Heres the code:
this.smls = 12.5;
targ_clip.setMask(mb);
i = 0;
function makeClips() {
var m;
m = targ_clip.attachMovie("sqr", "s"+i, i);
m._x = 15;
m._y = 60*i+10;
m._xscale = m._yscale=this.smls;
m.createEmptyMovieClip("holder", 0);
m.holder.loadMovie(this.photoArray*);
//preloading section
this.onEnterFrame = function() {
if (m.holder.getBytesLoaded == m.holder.getBytesTotal) {
i++;
trace(i);
redo;
this.onEnterFrame = undefined;
}
};
}
redo = makeClips();