How to load application in new native window?
var opts:NativeWindowInitOptions = new NativeWindowInitOptions();
opts.type = NativeWindowType.NORMAL;
var win:NativeWindow = new NativeWindow(opts);
win.title = "My New Window";
win.width = 320;
win.height = 200;
The code do create new blank window. But how can I load another application (mywin.mxml) into the new popup native window?
Hello? Do anyone have any ideas how to do it? Thanks.
Are you just trying to create an addtional window to an application? (ie. an app that has 2 or more windows). If so, your mywin.mxml should be an S:Window not an S:WindowedApplication. Then instead of using new NativeWindow() use new mywin();
If you are trying to launch a completely seperate application that has nothing to do with the first - see the new AIR 2.0 features that allow you to do this.