读书人

AIR无际框窗体

发布时间: 2012-09-10 11:02:32 作者: rapoo

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();

读书人网 >网络基础

热点推荐