6 Replies Latest reply: Nov 22, 2011 12:23 PM by JPatSoco RSS

    Using Pop Ups on Tiles

    JPatSoco

      When we create a pop up and add it using the PopUpManager, the pop up remains on the screen even when we navigate to a different Panel or View all together. Is there something special that needs to be done when using PopUps in CAF Tiles?

        • 1. Re: Using Pop Ups on Tiles
          Deke Smith Adobe Employee

          Yes. The problem is that the PopUpManager uses the top-most Flex application to draw the popup, but uses getSandboxRoot() when removing it. When using getSandboxRoot() the Gravity root is used. Gravity is the framework on which Composite Application Framework runs and the top level for it is called a bootstrap loader, a Gravity-specific SWF. If you use a Flex application as the root tile, this tile is loaded into the Gravity movie.

           

          To get around this use Application.application.parent as the parent for PopUpManager.createPopUp() or PopUpManager.addPopUp().

          • 2. Re: Using Pop Ups on Tiles
            JPatSoco Community Member

            I don't think there is an Application.application.parent anymore. Either way, we've tried using FlexGlobals.parentApplication and that does not work.

             

            Any other suggestions?

            • 3. Re: Using Pop Ups on Tiles
              Deke Smith Adobe Employee

              You need to use the Gravity root for the security domain. FlexGlobals.parentApplication should just return the top Flex application. What do you get when you use securityManager.getSandboxRoot() for the parent?

              • 4. Re: Using Pop Ups on Tiles
                JPatSoco Community Member

                I'm not seeing getSandboxRoot() on the securityManager. We have the securityManager defined as such,

                 

                [Bindable] [SecurityManager] public var securityManager:ISecurityManager;

                • 5. Re: Using Pop Ups on Tiles
                  Deke Smith Adobe Employee

                  Sorry. Should be *systemManager.getSandboxRoot(), not securityManager. Multi-tasking shouldn't be done while driving heavy machinery.

                  • 6. Re: Using Pop Ups on Tiles
                    JPatSoco Community Member

                    No dice, here's the Flash Player error we received:

                     

                    TypeError: Error #1009: Cannot access a property or method of a null object reference.

                                    at mx.accessibility::AccImpl$/http://www.adobe.com/2006/flex/mx/internal::getDefinition()[E:\dev\hero_private\frameworks\projects\framework\src\mx\accessibility\AccImpl.as:250]

                                    at mx.accessibility::AccImpl$/http://www.adobe.com/2006/flex/mx/internal::getDefinitions()[E:\dev\hero_private\frameworks\projects\framework\src\mx\accessibility\AccImpl.as:315]

                                    at mx.accessibility::UIComponentAccProps()[E:\dev\hero_private\frameworks\projects\framework \src\mx\accessibility\UIComponentAccProps.as:183]

                                    at mx.accessibility::UIComponentAccProps$/http://www.adobe.com/2006/flex/mx/internal::createAccessibilityImplementation()[E:\dev\hero_private\frameworks\projects\framework\src\mx\accessibility\UIComponentAccPr ops.as:76]

                                    at mx.core::UIComponent/initializeAccessibility()[E:\dev\hero_private\frameworks\projects\fr amework\src\mx\core\UIComponent.as:7681]

                                    at mx.core::UIComponent/initialize()[E:\dev\hero_private\frameworks\projects\framework\src\m x\core\UIComponent.as:7636]

                                    at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]

                                    at mx.core::UIComponent/addChildAt()[E:\dev\hero_private\frameworks\projects\framework\src\m x\core\UIComponent.as:7189]

                                    at spark.components::Group/addDisplayObjectToDisplayList()[E:\dev\hero_private\frameworks\pr ojects\spark\src\spark\components\Group.as:2037]

                                    at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\hero_private\frameworks\projects\spark\src\spark\components\Group.as:1628]

                                    at spark.components::Group/setMXMLContent()[E:\dev\hero_private\frameworks\projects\spark\sr c\spark\components\Group.as:633]

                                    at spark.components::Group/createChildren()[E:\dev\hero_private\frameworks\projects\spark\sr c\spark\components\Group.as:855]

                                    at mx.core::UIComponent/initialize()[E:\dev\hero_private\frameworks\projects\framework\src\m x\core\UIComponent.as:7624]

                                    at cafe.skins::PanelSkin/initialize()

                                    at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:7485]

                                    at mx.core::UIComponent/addChild()[E:\dev\hero_private\frameworks\projects\framework\src\mx\ core\UIComponent.as:7166]

                                    at spark.components.supportClasses::SkinnableComponent/attachSkin()[E:\dev\hero_private\fram eworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:692]

                                    at spark.components.supportClasses::SkinnableComponent/validateSkinChange()[E:\dev\hero_priv ate\frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:44 3]

                                    at spark.components.supportClasses::SkinnableComponent/createChildren()[E:\dev\hero_private\ frameworks\projects\spark\src\spark\components\supportClasses\SkinnableComponent.as:406]

                                    at spark.components::SkinnableContainer/createChildren()[E:\dev\hero_private\frameworks\proj ects\spark\src\spark\components\SkinnableContainer.as:879]

                                    at mx.core::UIComponent/initialize()[E:\dev\hero_private\frameworks\projects\framework\src\m x\core\UIComponent.as:7624]

                                    at com.southernco.view.components::EditGridColsWindow/initialize()

                                    at mx.managers.systemClasses::ChildManager/childAdded()[E:\dev\hero_private\frameworks\proje cts\framework\src\mx\managers\systemClasses\ChildManager.as:189]

                                    at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2139 ]

                                    at mx.managers::SystemManager/addChildAt()[E:\dev\hero_private\frameworks\projects\framework \src\mx\managers\SystemManager.as:1759]

                                    at mx.managers::SystemManager/addChild()[E:\dev\hero_private\frameworks\projects\framework\s rc\mx\managers\SystemManager.as:1742]

                                    at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\hero_private\frameworks\projects\framewor k\src\mx\managers\PopUpManagerImpl.as:340]

                                    at mx.managers::PopUpManager$/addPopUp()[E:\dev\hero_private\frameworks\projects\framework\s rc\mx\managers\PopUpManager.as:193]

                                    at com.southernco.view::SevenGridMediator/updateColumns()[C:\Documents and Settings\x2mkotad\Adobe Flash Builder 4.5\SEPASchedules\src\com\southernco\view\SevenGridMediator.as:68]

                                    at org.robotlegs.base::EventMap/routeEventToListener()[/Development/Projects/Robotlegs/robot legs-framework/src/org/robotlegs/base/EventMap.as:181]

                                    at Function/<anonymous>()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotl egs/base/EventMap.as:107]

                                    at flash.events::EventDispatcher/dispatchEventFunction()

                                    at flash.events::EventDispatcher/dispatchEvent()

                                    at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\sr c\mx\core\UIComponent.as:13128]

                                    at com.southernco.view::SevenGrid/gridSelect()[C:\Documents and Settings\x2mkotad\Adobe Flash Builder 4.5\SEPASchedules\src\com\southernco\view\SevenGrid.mxml:75]