so i have a loader.swf that loads in the main file, at the start of the loader there’s a preloader, that, when done loads in plays the external swf.
and i got another preloader on an swf that i load in, into a dummy MC
1st preloader doesn’t show up at the start of the flash
2nd preloader doesn’t show up at all and just shows half of the 2nd scene (where the actual movie is)
1st preloader
var loadAmount = _totalframes;
if (_framesloaded == loadAmount) {
gotoAndPlay(7);
} else {
loaded = Math.round(getBytesLoaded()/1024);
total = Math.round(getBytesTotal()/1024);
percent = Math.round((loaded/total)*100);
bytesLoadedOutput = loaded;
bytesTotalOutput = total;
percentOutput = percent+"%";
loadBar._width = loadBarHousing._width*(percent/100);
gotoAndPlay(4);
}
2nd preloader
bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
if (bytes_loaded == bytes_total) {
gotoAndPlay("Scene 2", 1);
}