Closing external swf automatically

*[I’m sorry if it’s too basic or some one else already asked this question…]
I’m looking for this actionscript that can close an already loaded external swf movie after it reaches at its last frame.

Ok, what I meant is, I have a virtual tour on a site. The main/root file main.swf has some spots where you can click to load external swfs and each one of these external swfs plays video message.

Now, my client wants me to make the external video message to be disappeared automatically when it reaches last frame (and, it should show the main scene then…)…

Can anyone please help me immediately?