I have a script which loads a SWF file into a movie clip called holder_mc. There is a button in the loaded SWF called close_btn. When this button is clicked, it should remove the loaded SWF from the holder_mc. I’ve tried the following:
close_btn.addEventListener(MouseEvent.CLICK, closeMe);
function closeMe(evt:MouseEvent):void {
holder.unload();
}
But the communication is all wrong. I’ve tried parent.parent. root.parent., etc.
Any suggestions?