How to close all popup windows in Flex?

后端 未结 2 561
清酒与你
清酒与你 2021-01-23 23:45

I want to show all popup windows(already popped up and closed individually) on an image by pressing a button press and want to close all those windows on another button press. A

2条回答
  •  旧巷少年郎
    2021-01-24 00:32

    Try this:

    for (var i:int = systemManager.popUpChildren.numChildren - 1; i >= 0; i--)
    {
        var popup:IFlexDisplayObject = IFlexDisplayObject(systemManager.popUpChildren.getChildAt(i));
        PopUpManager.removePopUp(popup);
    }
    

提交回复
热议问题