I have a very odd issue in my Flex3 app. I have a popup that is an mx:TitleWindow, instantiated with the popupManager in the normal way. It has a number of buttons, and a canvas. On creationComplete, an additional control is dynamically added to the canvas using childCanvas.addChild().
Everything works perfectly, *except* that the focus does not arrive in the popup; it remains in the background application window (which is blurred out as normal). On tabbing, I can observe the blue focus rectangle moving about the old top-level window. This doesn't always happen- but in about 75% of cases it does. If I manually set the focus into the popup (e.g into a textfield or a button), then tabbing continues to only have an effect in the wrong window. I've tried explicitly setting the focus in the creationComplete method (setFocus), both in the popup and from the outer container but no dice. I've tried making the added component trivially simple, and it still seems to cause it to break. Any good ideas, or is this just terminally broken?

