Hello everybody - long time!
I read the sticky - I’m using Flash CS3, but just actionscript 1.0/2.0; mostly 1.0…
Anywho. I’ve made this photo gallery that loads in 100 (used to be 200) photos at a time into a movieclip that slides back and forth. Everything works loading-wise, here’s my dilemma. I want to be able to tell people that there’s 100 pictures loading, so I’d try to use preloaders.
Here’s the deal, I can’t seem to find the bytesLoaded() from those buggers! I try to trace it the bytesTotal and get 100 zeros! Here’s where I’m at:
function popStrip() {
xloc = 0;
for (i=0; i<thumbs.length; i++) {
_root.strip.createEmptyMovieClip("pic"+i,i+200);
_root.strip["pic"+i].loadMovie("http://www.snapbooth.com/booth/"+currentdir+"/"+thumbs*);
_root.strip["pic"+i]._x = xloc;
_root.strip["pic"+i]._y = 0;
_root.strip["pic"+i]._xscale = _root.strip["pic"+i]._yscale=40;
xloc += 150;
trace(_root.strip["pic"+i].getBytesTotal()+" "+i);
}
}
I even tried this as a backup plan, but this was only a guess:
function popStrip() {
xloc = 0;
for (i=0; i<thumbs.length; i++) {
_root.strip.createEmptyMovieClip("pic"+i,i+200);
_root.strip["pic"+i].loadMovie("http://www.snapbooth.com/booth/"+currentdir+"/"+thumbs*);
_root.strip["pic"+i]._x = xloc;
_root.strip["pic"+i]._y = 0;
_root.strip["pic"+i]._xscale = _root.strip["pic"+i]._yscale=40;
xloc += 150;
_root.strip["pic"+i].onLoad = function(){
trace('this pic loaded!');
}
}
}
At thsi point, I’m going to put up some dummy thing that states images are being loaded, but I’m really curious on why I can’t seem to target these movieClips!
Thanks!