Preloader>play movieclip>go to another frame

Hey,I’ve created a preloader for a website, and I want this to happen: When the preloader is finished loading, it should go to another frame,playing off a movieclip in that frame,just to indicate that the page is finished loading. And when that movieclip is finished, it should go to the next frame,which is the main content of the page. But when the movieclip appears,it just stops immediatly,without playing,and THEN it proceeds to the next frame,which is the main page … Whats wrong? My actionscript for the preloader looks like this:

bytes_loaded = Math.round(_root.getBytesLoaded());
bytes_total = Math.round(_root.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
_root.loadBar._height = getPercent100;
_root.loadText = Math.round(getPercent
100)+"%";
if (bytes_loaded == bytes_total) {
_root.gotoAndPlay(4);
}

-Frame 4 is where the movieclip is,and 5 would be the main content of the page. Am I supposed to have som sort of scripting on frame 4,and if,is it supposed to be on the movieclip instance,or just on the frame?

Cheers :toad: