Close Button in External swf

Is is possible for a loaded external swf to unload itself?
I need a loaded swf to play to a certain frame and then display a close button.