AIR无边框窗体

1.基于 WindowedApplication  的无边框窗体

例如:找到 xml配置文件

  <systemChrome>none</systemChrome>

  <transparent>true</transparent>

2.基于 Window 的无边框窗体

 var newWindow:Window = new Window();
    newWindow.systemChrome = NativeWindowSystemChrome.NONE;
    newWindow.transparent = true;
    newWindow.title = "New Window";
    newWindow.width = 200;
    newWindow.height = 200;
    newWindow.open(true);

 

3.基于NativeWindow 

var newWindow:NativeWindow = new NativeWindow(options);
    newWindow.title = "A title";
    newWindow.width = 600;
    newWindow.height = 400;
    newWindow.stage.align = StageAlign.TOP_LEFT;
    newWindow.stage.scaleMode = StageScaleMode.NO_SCALE;
    //activate and show the new window
    newWindow.activate();

你可能感兴趣的:(AIR)