我正在 Flex 4 中构建一个空中应用程序。我正在创建窗口,因为我需要它们在无铬应用程序中。
这是我在主应用程序创建中完成的内容
protected function creationCompleteHandler(event:FlexEvent):void
{
facade.sendNotification(AppFacade.APP_INIT, this);
var buttons:NavigatorWindow = new NavigatorWindow();
var workingSets:WorkingSets = new WorkingSets();
buttons.addElement( workingSets );
buttons.width = 115;
buttons.height =200;
buttons.maximizable = false;
buttons.resizable = false;
buttons.addEventListener(AIREvent.WINDOW_COMPLETE, onWindowComplete);
buttons.open();
}
private function onWindowComplete(event:AIREvent):void
{
event.currentTarget.x = 100;
event.currentTarget.y = 100;
}
由于某种原因,应用程序在屏幕中间添加了窗口,如果我设置了窗口的 x 和 y,它不会将它放在我期望的屏幕左上角的位置。窗口打开时如何定位我想要的位置?
谢谢,