Executing code when external movieclip stops

Hey all,

I have an animated rectangle (mc placeholder) that pops out and plays an external .swf file. How can I have the rectangle (place holder for mc) go back off the screen when the mc is finished.

Thanks.