How can we remove all the popups existing in an application?
A:
Based on the limited detail of your question, the best I can give you is that you could search the entire application for the code that initiates pop-ups with [ctrl]+[shift]+[f]
invertedSpear
2010-03-15 15:33:30
+2
A:
This article about closing popups in flex at Flex Monkey Patches Blog may be helpful.
Nishu
2010-03-15 15:38:13
interesting solution. We don't typically use PopupManager for relatively obvious reasons... but just the same, I can't say I've ever used that 4th argument. Good find.
jeremy.mooer
2010-03-15 16:10:06
@jeremy.mooer what are those obvious reasons? I use a Util method to create popups but it internally uses popupmanager.
Nishu
2010-03-15 16:17:57
@Nishu -- Garbage collection was the main reason, though this was maybe a bigger issue in Flex2. Passing an instance of the parent displayObject might cause for that parent object, or even the popup, to not get garbage collected. If I use solely transitions and states, I have more control of eventListeners and I can make sure that the component/popup is very loosely coupled. I'd much rather be the one to destroy the component and remove event listeners than depend on PopupManagerImpl's built-in removePopUp.
jeremy.mooer
2010-03-15 18:08:07