tags:

views:

36

answers:

1

I'm opening popups (subclass of TitleWindow) in Flex by using

PopUpManager.createPopUp(parent, TrainCard)

Is there any way I can get a list of popups that are open? Or do I need to keep my own list?
I need to make sure I'm not opening the same popup twice.

+1  A: 

The ISystemManager.popUpChildren property might be what you're looking for, PopUpManager will add the popup there. You can access the application ISystemManager via any component's systemManager property.

Dave
systemManager was the right place to look.systemManager.popUpChildren.numChildren is always 0 for me, don't know why. But I found the popups via systemManager.getChildAt(index). Just iterating over all children and picking those that are of my popups class.
rlovtang