Preloader in second frame

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 = getPercent
100;
if (bytes_loaded == bytes_total) {
_parent.gotoAndStop(3);
}

frame 2 of the preloader:
this.gotoAndPlay(1);

I figured it out.

I keep forgetting that the preloader needs to play. I keep making the preceding frame instruct the second frame to ‘gotoAndStop’. So of course it’s not doing anything.

I think it should say gotoAndPlay(2) on the second frame of the preloader if you have it on the second and third frame… and if the movie is loaded it should say gotoAndPlay(4)… at least I think so… (-:

aargh… 2 minutes too late I was… :be:

It’s still a confirmation that I’m on the right track.