Preloader for external swfs

Hi there,
I am having no luck whatsoever getting a preloader to work when external swfs are loaded into main site swf. The preloader works fine when pulished individually but not when loaded into main swf…

The code on the preloader movie is:

onClipEvent (load) {
var totalKiloBytes = Math.floor(_root.getBytesTotal()/1024);
var totalText = “LOADING “+totalKiloBytes+“K”;
}
onClipEvent (enterFrame) {
if (_root._framesloaded>0 && _root._framesloaded == _root._totalframes) {
_root.goNextScene();
} else {
var loadedBytes = _root.getBytesLoaded();
var totalBytes = _root.getBytesTotal();
var percentLoaded = Math.round((loadedBytes/totalBytes)*100);
statusText = percentLoaded+”%”;
statusBar._xscale = percentLoaded;
}
}

The first frame of preloader scene has the code:

stop();
function goNextScene() {
gotoAndPlay(“Scene 1”, 1);
}

Im not that accomplished with the old actionscript so if anyone can tell me why this doesnt work when swf is loaded into a ‘host’ blank MC in main swf… I would be eternally grateful!!!

Jo:be: