All encompassing preloader HELP

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;
	}
}

};

OK I figured it out here’s what I got:

_root.preloader_mc.onEnterFrame = function() {
filesize = _root.sound_pl.getBytesTotal()+_root.grid_pl.getBytesTotal();
loaded = _root.sound_pl.getBytesLoaded()+_root.grid_pl.getBytesTotal();
preloader_mc._visible = true;
if (loaded != filesize) {
preloader_mc._xscale = 100*loaded/filesize;
grid_pl._visible = false;
sound_pl._visible = false;
} else {
preloader_mc._visible = false;
grid_pl._visible = true;
sound_pl._visible = true;

	if (_root.sound_pl._alpha<100) {
		_root.sound_pl._alpha += 10;
	}
}

};

I just added up the files that need to be loaded and make them invisible until all are loaded.