New NativeWindow with owner defined fails to display
This seems like a no-brainer, but I'm stumped over the simplest thing. Am I misunderstanding the owner property?
I had an issue in my application creating a new NativeWindow with the owner defined. The window would not show up when activate() was invoked on it. So I created the simplest hello world application to ensure it wasn't something in my code and it still doesn't show. Can anyone help me figure out what I'm missing or explain the owner property as to why it's not working? If I comment out the line setting the owner on the NativeWindowInitOptions then the new window displays as expected.
package
{
import flash.display.NativeWindow;
import flash.display.NativeWindowInitOptions;
import flash.display.Sprite;
import flash.text.TextField;
public class Main extends Sprite
{
public function Main()
{
var textField:TextField = new TextField();
textField.text = "Hello, World";
addChild(textField);
var initOptions:NativeWindowInitOptions = new NativeWindowInitOptions();
initOptions.owner = stage.nativeWindow;
new NativeWindow(initOptions).activate();
}
}
}
