Connecting Preloader

Hello Everyone,

I have created a preloader, and I want to tell the action script of the preloader once the file is done loading, put it away and load a new movie, or even a new flash file if i have to.

Help? I just want to know the easiest way to set this up. here is the action script i have on the loader right now. Its just numbers counting from 1-100% and a .gif clip that plays but they are not connected in any way.

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

Also, my preloader ends on Frame 3 and movie would start on frame 4.


kjgator