Hi,
I'm currently facing quite strange problem related to the PopupManager.
Problem happens when more than one modal popup is opened. When the top most popup is closed the UI stays in a blocked mode (grayed out) and user cannot continue working.
Here is absolutely simple example that reproduces this issue:
<?xml version="1.0" encoding="utf-8"?>
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml"
width="400" height="300"
verticalAlign="middle" horizontalAlign="center">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
protected function openClicked(event:MouseEvent):void {
var newWindow:TestWindow = new TestWindow();
var red:uint = Math.floor(Math.random()*255);
var green:uint = Math.floor(Math.random()*255);
var blue:uint = Math.floor(Math.random()*255);
var color:uint = red << 16 | green << 8 | blue;
newWindow.setStyle('backgroundColor', color);
newWindow.width = this.width - 50;
newWindow.height = this.height - 30;
PopUpManager.addPopUp(newWindow, this.parentApplication as DisplayObject, true);
PopUpManager.centerPopUp(newWindow);
}
protected function closeClicked(event:MouseEvent):void {
PopUpManager.removePopUp(this);
}
]]>
</mx:Script>
<mx:Button label="open popup" click="openClicked(event)" />
<mx:Button label="close popup" click="closeClicked(event)" />
</mx:VBox>
And here is full project: Dropbox - PopupTest.zip
This issue happens only on some PCs, but all of them are running Windows 10, on most of PCs it runs perfectly OK. It might be related also to the graphical card etc.
Similar error to this was reported here:
Thanks for any info,
Jiri