1 Reply Latest reply on Mar 4, 2008 11:24 AM by FrostFire2

    PopupManager and state change problem

    FrostFire2 Level 1
      If I display a popup through PopupManager then change the CurrentState of the application or change CurrentState before removing the popup the application goes into a weird zone where the application is disabled to user input but the popup cannot be seen.

      Is this behavior intended? It seems like a bug to me.
        • 1. Re: PopupManager and state change problem
          FrostFire2 Level 1
          Here's an application that demonstrates the bug, which seems to be caused by the canvas.

          <?xml version="1.0" encoding="utf-8"?>
          <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" width="200" height="200" creationComplete="init()">
          <mx:Canvas x="0" y="0" width="200" height="200" id="canvas1" verticalScrollPolicy="off" horizontalScrollPolicy="off">
          </mx:Canvas>
          <mx:states>
          <mx:State name="NextState">
          <mx:AddChild relativeTo="{canvas1}" position="lastChild">
          <mx:DataGrid x="10" y="10" width="163">
          <mx:columns>
          <mx:DataGridColumn headerText="Column 1" dataField="col1"/>
          <mx:DataGridColumn headerText="Column 2" dataField="col2"/>
          <mx:DataGridColumn headerText="Column 3" dataField="col3"/>
          </mx:columns>
          </mx:DataGrid>
          </mx:AddChild>
          </mx:State>
          </mx:states>
          <mx:Fade id="ContainerFadeOut" alphaFrom="1" alphaTo="0" duration="0" target="{canvas1}"/>
          <mx:transitions>
          <mx:Transition fromState="*" toState="*">
          <mx:Fade alphaFrom="0" alphaTo="1" target="{canvas1}" duration="0" />
          </mx:Transition>
          </mx:transitions>
          <mx:Script>
          <![CDATA[
          import mx.controls.Alert;
          private function init():void {
          Alert.show("TEXT", "TITLE");
          this.currentState = "NextState";
          }
          ]]>
          </mx:Script>
          </mx:Application>