Skip to main content
Participant
May 12, 2016
Question

PopupManager not working correctly under Windows 10/8.1/8 on some PCs

  • May 12, 2016
  • 1 reply
  • 573 views

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/8.1/8, 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: https://forums.adobe.com/message/7239683#expires_in=86399992&token_type=bearer&access_token=eyJhbGciOiJSUzI1NiIsIng1dSI6…

Thanks for any info,

Jiri

This topic has been closed for replies.

1 reply

Jiri JasaAuthor
Participant
June 15, 2016

Is it please possible to check this issue? I can provide you with access to the PC where this problem occours or send more detailed logs etc. It's quite vital for us as customers cannot use our SW delevoped in Adobe AIR...

IGZN
Inspiring
June 15, 2016

A couple thoughts:

  • when you try removing the popup, you reference this, although when you actually create the window, it's a new object (newWindow). what you're actually doing is to remove the main application from the PopupManager.
  • there was a PopupManager bug a couple months before in Apache Flex, but it got fixed in 4.14.1 ( see release notes: http://xenia.sote.hu/ftp/mirrors/www.apache.org/flex/4.15.0/RELEASE_NOTES  )