Skip navigation
Currently Being Moderated

Using Pop Ups on Tiles

Nov 22, 2011 9:21 AM

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?

  • Currently Being Moderated
    Nov 22, 2011 10:40 AM   in reply to JPatSoco

    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().

    Mark as:
  • Currently Being Moderated
    Nov 22, 2011 11:30 AM   in reply to JPatSoco

    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?

    Mark as:
  • Currently Being Moderated
    Nov 22, 2011 11:42 AM   in reply to JPatSoco

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

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points