I am using the preloader example from the Kirupa site, but applying it to second frame. (from ‘http://www.kirupa.com/developer/mx/percentagepreloader.htm’).
I am creating a very simple less than 5k animation in the first frame before the preloader comes up in the second frame. What is happening is that the first frame will load with animation, but the preloader in the second frame will not show and will not advance to the third frame when the swf has completely loaded.
I’ve encased the preloader into one movie clip in the second frame, and this is what it looks like:
frame 1 of the preloader:
bytes_loaded = Math.round(_parent.getBytesLoaded());
bytes_total = Math.round(_parent.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
display.text = Math.round(getPercent100) + “%”;
bar._xscale = getPercent100;
if (bytes_loaded == bytes_total) {
_parent.gotoAndStop(3);
}
frame 2 of the preloader:
this.gotoAndPlay(1);