Detecting end of loaded external swf

Hi,
I have a main swf file that needs to stop, load & play an external swf file the main timeline, & then resume the main timeline when the external swf has finished playing.

So I have the follwing code in a frame in the main timeline:

stop();
var swf:MovieClip;
var loader:Loader=new Loader();
var defaultSWF:URLRequest = new URLRequest(“url/.swf”);

loader.load(defaultSWF);
loader.x = 172;
loader.y = 180;
addChild(loader);

//////

function swfComplete(e:Event):void {
// trace (“I’m here”);
removeChild(loader);
play();
}

This loads and plays OK but it’s the unload and play that I’m struggling with.

What code can I use to detect the end of the external swf and either call swfComplete of goto a main timeline label?

Many thnx in anticipation,

Lesterp99
Flash CS4
AS3