Close button in loaded SWF

I have a main swf that loads another SWF. In that loaded SWF I have a close button that I want to remove the SWF its in.

So I have:

main.swf - I hit a button that loads another swf.
other.swf - contains a close button to remove itself (itself being other.swf)

I cant manage to get the code to work to remove itself. How would I go about do this? I’ve tried this and its not working:


private function removeSWF(e:MouseEvent)
{
	p.presenterHolder.removeChildAt(0);
}

p = parent and presenterHolder is where other.swf gets loaded into.