Externaly loaded swf not preloading

Hey guys and gals,

I’m trying to load an external .swf file that is a preloader that loads another .swf. Yet the preloader just hangs when it’s loaded into the main swf and never loads up the specified .swf. Here’s my code

this is the button code:
on (release) {
_root.gal1.removeMovieClip();
createEmptyMovieClip(“mc1”, 5);
loadMovie(“gal_swf/cd_rls_pony_3_14_03.swf”, mc1);
}

and this is the preloader code

frame 1
loadMovieNum(“cd_rls_pony_3_14_03.swf”, 1);

frame 2
if (_level1.getBytesTotal() > 0) {
loaded = _level1.getBytesLoaded();
total = _level1.getBytesTotal();
percent = Math.round((loaded / total) * 100);
percentBar.gotoAndStop(percent);
if (loaded == total) {
_level1.play();
gotoAndStop(4);
}
}

frame 3
gotoAndPlay(2);

I hope someone can figure this out cuz it’s driving me nuts! :slight_smile:

make another scene at the beginning of the whole movie you are loading and put the preloader in that first scene, and make it when the bytes loaded == bytes total gotoandplay next scene then it will preload when it is loaded in.

By making it gotoandplay next scene instead of “whatever”, 1 you can use the same frames of the preloader anywhere you want instead of writing it again…

does that help?