Flex controls generally need to be parented by other Flex controls so your use of NativeWindow directly is suspect. I would try mx.core.Window and SWFLoader
Flex SDK Developer
Adobe Systems Inc.
Thanks for your answer.
I just tried with the mx:Window component and it didn't change anything. The new window is opening, the content is loading, but I can't make the TitleBox appear...
Any other solution?
I have news !!
I analyzed all the variables with the debugger, and could determine that the problem was with the 'parent' attribute of the createPopUp method. When I put this attribute to Application.application, I'm able to open the pop-up in my main application window (not in the one I want). What should I pass to the method in order to open the pop-up in my secondary window? I tried with this, but no luck... Nothing happens...
I also tried Application.application.historyWindow (which is the instance of my secondary window), but this time, my main window blurs but shows no pop-up..
Any idea please?
Ok I got my problem solved. Instead of using 2 MXML Applications, and loading the second .swf into a new mx:Window component, I used a MXML Component in a separate file, and loaded it the simple way : historyWindow:myComponentName = new myComponentName();
It worked the with the PopUpManager.