I'm using Gaurav's article on styles and popup with Flex 4 as a model for adding popups to a Flex app. The TitleWindow is created using this method:
titleWindow = PopUpManager.createPopUp(DisplayObject(systemManager),TitleWindow, true, null) as TitleWindow;
This has the advantage to insuring the popup is added to the toplevel of the application. My problem is when the pop-up is closed,I need to put the tabnavigatorback in focus. Right now, ehn you close a popup, you lose the ability to navigate through the tabs. Any ideas?
If you have a CloseEvent event listener as he does in the example to handle removing the popup I believe you could have a line of code in that method utilizing FocusManager to set focus to your tab navigator. Something like focusManager.setFocus(myTabNavigator).
In theory it should just work. Focus may not return to the TabNav, but it
should return to whatever button was used to popup the popup.
There are some tricky timing issues when setting focus as popups go up or
down. Sometimes you have to use callLater to delay setting focus.