I'm using actionscript 2, and I have a preloader that looks like this:

PHP Code:
onClipEvent (load) {
total _root.getBytesTotal(); 
onClipEvent (enterFrame) {
loaded _root.getBytesLoaded(); 
percent int(loaded/total*100);
progress ""+percent+"";
    if (
loaded == total) {

When my .fla had just two frames, the preloader would load to 100%. But as soon as I increase the number of frames from two to three, the preloader stops at 57%. The preloader disappears and continues to load on frame two. Does anyone know what's causing this?

Your help is most appreciated, thank you!