I modified the preloader from the kirupa tutorial for the load bar and percentage to allow the preloading of an external swf. My only problem is that the external swf file that is loaded in the createEmptyMovieClip shrinks and is not the same size as main frame.
this.createEmptyMovieClip("tutorial",1);
tutorial.loadMovie("recruiter2.swf");
this.onEnterFrame = function () {
bytes_loaded = Math.round(this.tutorial.getBytesLoaded());
bytes_total = Math.round(this.tutorial.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._width = getPercent*100;
_root.loadText = "Preloading " + Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.play();
}
}
Anyone know what’s up?