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!