This content has been marked as final. Show 4 replies
By launch I'm guessing that you mean open a new window that's part of the same application. If so, there's only one WindowedApplication per application, but you can open additional Windows.
Ok, great. Thank you!
My application has one window class and the user can open multiple instances of it. If I can only have one WindowedApplication, how can I make this work? Is there a way to prevent WindowedApplication for acually opening a window and instantiate the correct class manually?
@NathanaelJones Yes. You can prevent the initial application window from ever becoming visible. The code in the WindowedApplication class can then open any other windows needed. You will have to write code to close this window at the appropriate time, since, obviously, the user can't.
To prevent the WindowedApplication window from appearing, set it's visible attribute to false:
<mx:WindowedApplication xmlns:mx=" http://www.adobe.com/2006/mxml" visible="false">