[MX]bytesLoaded MC Problem

I have 2 MCs on my timeline. One is called section_mc and the other is trans_mc . section_mc holds movies that I load into it and trans_mc is a transition that plays on top of section_mc after the content is loaded into section_mc .

From a frame script on my main timeline I have this code:

[AS]
_global.homeTimeline = this;
var section = “home.swf”;
var secHolder = section_mc;
var movieStart = true;

section_mc.onEnterFrame = function() {
if (this.getBytesLoaded() == this.getBytesTotal()) {
if (movieStart) {
homeTimeline.trans_mc.gotoAndPlay(“start”);
}
}
}
[/AS]

On the first frame of my trans_mc I have this code:

[AS]
stop();

loadMovie(homeTimeline.section, homeTimeline.secHolder);
[/AS]

Now this works, but the problem is that sometimes it will work and sometimes it doesn’t - it’s random. Sometimes when I test the site trans_mc will play and it works fine but other times when I test the site trans_mc won’t play, so something isn’t working correctly with my onEnterFrame function listed above.

Can anyone help me out with this?

Thanks

Foo