hi
can someone help me with this gallery script? I cant seem to get a preloader script working for the thumbs and the full pics…
here is the code and the zip
COLS = 14;
// number of columns in grid
ROWS = 2;
// number of rows in grid
vSPACING = 40;
// spacing between circles in pixels
hSPACING = 23;
// spacing between circles in pixels
LEFTMARGIN = 85;
TOPMARGIN = 310;
DEPTH = 0;
// starting point for depth
count = 0;
for (i=1; i<=ROWS; i++) {
for (k=1; k<=COLS; k++) {
thumb = this.createEmptyMovieClip("btn_mc"+i+"_"+k, DEPTH++);
thumb._x = LEFTMARGIN+((k-1)*(vSPACING+thumb._width));
thumb._y = TOPMARGIN+((i-1)*(hSPACING+thumb._height));
this["btn_mc"+i+"_"+k].a = i+"_"+k;
this.a = this_a;
this["btn_mc"+i+"_"+k].i = DEPTH;
this.thumb.createEmptyMovieClip("imgHolder_mc", 1);
this.thumb._xscale = 100;
this.thumb._yscale = 100;
this.thumb.onRelease = function() {
container.loadMovie("thumbs/full/image_"+this.i+".jpg");
p = 0;
this.onEnterFrame = function() {
filesize = container.getBytesTotal();
loaded = container.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (container._alpha<100) {
container._alpha += 10;
}
}
};
container._x = 100;
container._y = 8;
container._xscale = 70;
container._yscale = 70;
this._alpha = 35;
};
this.thumb.imgHolder_mc.loadMovie("thumbs/pic"+DEPTH+".jpg");
}
}
container.loadMovie("thumbs/full/number1.jpg");
container._x = 100;
container._y = 8;
container._xscale = 70;
container._yscale = 70;
can someone help me??