Mx loading and unloading swf files

I know how to link an external swf file to the main swf. My problem is getting it to unload and play another one in sequence. I have tried several different actions but none give me what I want. If anyone could help please. Thanks in advance:)