Not finding what you are looking for? Request a recipe!
The modal is created in the SystemManager in Flex. The modal is a FlexSprite and is given the name "modalWindow". By assigning a MouseEvent.CLICK handler to the SystemManager, we can check for those specific traits and close the window.