I did the tutorial on Kirupa and it works great. The only problem is that the images don’t always fade in after they are first loaded, they just appear. It works when you are working in flash, but when you post the files live it doesn’t. You notice it even in the tutorial:
http://www.kirupa.com/developer/mx2004/thumbnails.htm
This is the code:
//////
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
////
Any suggestions on how to fix this?