Detecting the end of an external swf file in an empty mc or loader

Hi!
Im currently trying to upload an external swf file trough an empty mc.
But since in this case i will be changing the swf file at times, i hope i could have an actionscript that detects the end of the external swf file and then gets the command gotoAndPlay(2).

thanks for reading

hope someone know how