Preloader problems

Just created a preloader using one of the tuts here. Worked great in my main timeline however, upon nesting it in a movie clip… it seems to be broken.

I put the same preloader in the 1st 2 frames of my movie clip which is located in the first frame of my main timeline.

Here’s the code I’m using:

//-----------

bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}

//-----------

Why wont it work nested in a MC??

Okay, I AM preloading something: the 1st frame of my movie. It has a movie clip that has a preloader nested on ITS time line. I’m sure that this can be done without resorting to loading an external file. I just dont know exactly where to put the code and how to target getBytesLoaded and getBytesTotal.

As of right now I have this code in the 1st frame of my movie clip called “start_mc”.

//-------------

bytes_loaded = Math.round(_root.start_mc.getBytesLoaded());
bytes_total = Math.round(_root.start_mc.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.start_mc.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
_root.start_mc.gotoAndPlay(3);
}

//--------------

Do you notice anything wrong with this code??

Btw, I checked your tutorial again (I remember way back when you had it posted) and I am unclear about one thing: What and where is “section”. Its referenced in the code but I dont see any explaination of it in you tutorial.

Also I attached a zip file with my source .fla

Maybe you could see what I am doing wrong.

Thanks,
Spesh

section is the variable that controls which swf will be loaded.