Hi, I created a popUp window like this:

Actionscript:
var win:MovieClip = mx.managers.PopUpManager.createPopUp(this, Window, true, {contentPath:"popup_mc",closeButton:false});
win.setSize(350, 200);
win._x=300;
win._y=125;
I put my popup in a custom component and it worked fine, I managed to put eventlisteners on the included buttons. However, when I placed my component in a external fla, it acted severely weird and ended up behind all component elements. I solved this with setting the depth above the components depth AND setting the popup on the components _parent, ie the external fla.

Actionscript:
...PopUpManager.createPopUp(this._parent, Window ...
this made the popup act weird when I testran it alone, but worked fine in the external fla.
So far so good...
What then occured was that the closing of the popup stopped working. This used to work:

Actionscript:
win.content.NextButton.onRelease = function()
{
trace("this gets traced allright");
_parent._parent.deletePopUp();
}
ie, putting
deletePopUp() on
win. Now it doesn't, even though
win can be accessed using both "win" and "_parent._parent" (_
level0.depthChild0), it refuses to delete itself.
Somehow the popup is now set on the external fla, so allthough the win variable is inside the component, it won't do this. Weird, or am I missing something here?