Moving on after external SWF is finished

I am loading a movie into a container and positioning it. That part works fine. I am struggling with get Flash to evaluate the length of the loaded movieclip and moving to the nextFrame once it’s done.

Anythoughts?

//loading external swf into empty clip
this.createEmptyMovieClip(“myContainer_mc”, 2);
myContainer_mc._x = 0;
myContainer_mc._y = 200;
myContainer_mc.loadMovie(“child.swf”);
stop();

//testing for loaded movie length
this.onEnterFrame = function() {
LMcurrentframe = (this.myContainer_mc.getBytesLoaded());
LMtotalframe = (this.myContainer_mc.getBytesTotal());
if (LMcurrentframe>=LMtotalframe) {
_parent.nextFrame();
this.unloadMovie();

}		

}