What am I doing wrong?

I’m doing a site with transitions (with pre-loaders.) I’ve gotten two to work the way I want them to. I just made a xml gallery, which for some reason won’t unload when I click on any of the menu buttons.

I’ve used exactly the same code as I did with the previous two:

first frame:

midframe = 39;
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent100;
this.loadText = Math.round(getPercent
100)+“%”;
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}

the middle stop frame:

stop();

last frame:

_root.container.loadMovie(_root.currMovie+“.swf”);

what am I doing wrong? anything i should be thinking of…?