I’ve created a base swf file that loads quite a few different files (multiple swf, jpg, and xml) but I don’t want anything to display without everything else having loaded. This is what I’ve used in the past. Let me know if you have any better alternatives. Thanks.
sound_pl.onEnterFrame = function() {
filesize = _root.sound_pl.getBytesTotal();
loaded = _root.sound_pl.getBytesLoaded();
preloader_mc._visible = true;
if (loaded != filesize) {
preloader_mc._xscale = 100*loaded/filesize;
} else {
preloader_mc._visible = false;
if (_root.sound_pl._alpha<100) {
_root.sound_pl._alpha += 10;
}
}
};