Automatically loading external swfs

Hi

I’m really new to AS3 and have been playing around with tutorials and learning about external swf files…

Currently, I’ve got one external swf loaded that plays looped and have a button that loads the second swf (which has flv content).

I’m wondering how to get the first swf to reload automatically and play looped again when the second swf finishes playing.

I’ve beentrying this for quite a few days now and don’t seem to get any closer.

The code I’m using is:

var Xpos:Number=110;
var Ypos:Number=110;
var swf_MC:MovieClip = new MovieClip();
var loader:Loader = new Loader();

var defaultSWF:URLRequest = new URLRequest(“arch_reel.swf”);

addChild (swf_MC);
swf_MC.x=Xpos
swf_MC.y=Ypos

loader.load(defaultSWF);
swf_MC.addChild(loader);
//Btns Universal Function
function btnClick(event:MouseEvent):void{
SoundMixer.stopAll();
swf_MC.removeChild(loader);

var newSWFRequest:URLRequest = new URLRequest(event.target.name + ".swf");
loader.load(newSWFRequest);
swf_MC.addChild(loader);

}

//Btn Listeners
motion.addEventListener(MouseEvent.CLICK,btnClick);