Hi.

PopUpManager.removePopUp(someWindow) really doesn't destroy someWindow.
If you create someWindow in some function it should be destroyed by garbage
collector.
Otherwise... well sometimes I simply use one object for every pop-up of
special type, e.g.

private static var _popUp : IFlexDisplayObject = new FailurePopUp("Error
msg");

and then in some function:
PopUpManager.addPopUp(_popUp, model.mainAppCanvas, true);
PopUpManager.centerPopUp(_popUp);

and removing it like this:
PopUpManager.removePopUp(_popUp);

R.

On 1/19/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:

  I am seeing behavior where pop ups seem to just be getting hidden by
removePopUp(), resulting in a growing stack of them each time a new
one is added. I create the pop up like this:

var p:IFlexDisplayObject = new FailurePopUp("Error msg");
PopUpManager.addPopUp(p, model.mainAppCanvas, true);
PopUpManager.centerPopUp(p);

and removing it like this:

PopUpManager.removePopUp(this);

No idea what is going on. Any help is greatly appreciated.

Thanks,
Ben

Reply via email to