[flash8]Preloading problem

Hello, I have a loading problem.
Ok, my site is huge, but the main interface is light. I want to check when the main interface is loaded so I can display it, and then display the different components one by one when each one is loaded.

Here’s my code:


//This is just for displaying the percentage
LoadedBytes=getBytesLoaded();
TotalBytes=getBytesTotal();
Percentage = int(LoadedBytes/(TotalBytes/100));

//This checks if everything has loaded
if(this._framesloaded >= this._totalframes) {this.gotoAndStop("MainFrm");}

//this is what command should be executed when the playhead reaches frame 5,
//where my main interface is located.
if(this._framesloaded == 5 ){SpinCube(1,Page.Full,"PLoading")}

Now, it works. The code is not the problem; the problem is that the _framesloaded property stays stuck at 4 for 90% of the loading, and then frames 5 to 8 are loaded within the remaining 10%.
It is weird, since frames 1 to 4 are almost completely empty, and frames 5 to 8 contain all symbols used later on in the movie.
And it is mostly unwanted, since the result is almost similar to loading the entire site. What I want is the user to be able to begin interacting as soon as the playhead reaches frame 6.

I don’t understand how it is possible. Why is flash taking so long loading almost nothing, and then speeds up for loading the big heavy stuff?

edit: I just checked, it is not 90%, but 99%. It loads the whole site. What is _loadedframes for? I might as well use ifFrameLoaded then.

edit(2): With ifFrameLoaded, it works. So my problem is solved (although, since ifFrameLoaded is deprecated, I’d like to use _loadedframes instead, just to get used to it). I’d still want, for learning purposes, to understand why the other way doesn’t do what it is supposed to?