Unloading using actionscript

I have some external swf files, which contains movies that I load intoa MC on the main time line. How do I unload the load .swf files using action script once the movie has stoped playing within them?