---
title: "AIR无边框窗体"
author: "demojava"
date: "2012-06-10T19:51:43Z"
tags: []
categories: ["Web前端"]
slug: "air"
draft: false
lastmod: "2012-06-10T20:21:43Z"
id: 1557953
url: "https://demojava.iteye.com/blog/1557953"
---

1.基于 WindowedApplication  的无边框窗体

例如：找到 xml配置文件

  &lt;systemChrome&gt;none&lt;/systemChrome&gt;

  &lt;transparent&gt;true&lt;/transparent&gt;

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