问题描述
我的Flex 3应用程序必须通过PopUpManager将表现出一定的模式对话框,但有些时候,我想其他视图组件知道有显示弹出。 PopUpManager在没有任何方法实际上,签弹出窗口的存在。是否有检测这种闪光/柔性任何其他方式不写我自己的全球经理?
My Flex 3 application has some modal dialogs displayed via the PopUpManager, but there are times when I'd like other view components to know there is popup displayed. The PopUpManager doesn't have any method for actually checking the existence of popups. Is there any other way to detect this in flash/flex without writing my own global manager?
(也systemManager.popUpChildren.numChildren == 0,即使有一个模式弹出)
(also systemManager.popUpChildren.numChildren == 0 even when there's a modal popup)
干杯。
推荐答案
我认为这取决于你正在加入弹出式的方式,查看文档:
I think it depends on the way you are adding the popup, check the documentation :
http://livedocs.adobe.com/flex/3/langref/mx/managers/PopUpManager.html
创建或添加弹出四个参数和第四个参数是一个子列表
create or add popup takes four parameters and fourth parameter is a child list
的childList:字符串(默认为空) - 孩子列表,在其中添加 弹出。其中之一 PopUpManagerChildList.APPLICATION, PopUpManagerChildList.POPUP,或 PopUpManagerChildList.PARENT (默认值)。
因此,尝试将所有的弹出窗口的一个特定的子列表,然后玩的列表的大小。
So try adding all the popup's to a particular child-list and then play around with the size of the list.
这篇关于Flex的PopUpManager中:我如何检测一个模式弹出的存在?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!