1
votes

The nativeWindow supports systemChrome (standard,none) and transparent (false,true); These options are in the Adobe AIR Application Descriptor File (xml)

    <!-- The type of system chrome to use (either "standard" or "none"). Optional. Default standard. -->
    <!-- <systemChrome></systemChrome> -->

    <!-- Whether the window is transparent. Only applicable when systemChrome is none. Optional. Default false. -->
    <!-- <transparent></transparent> -->

But I can't find the option to set the window type (utility,normal,lightweight) as seen on the TourDeFlex under Air Applications -> AIR APIs and Techniques -> Native Windows.

From the application can be accessed just as a read-only property.

Where's the right place to set this property?

A good example of usage could be: minitask.org

Thanks!

Edit: The window should start in the UTILITY mode

3

3 Answers

2
votes

You may not be able to do this with a main application window. A trick you could use is:

function MainConstructor() {

    var opt:NativeWindowInitOptions = new NativeWindowInitOptions();
    opt.type = NativeWindowType.UTILITY;

    var window:NativeWindow = new NativeWindow(opt);
    window.activate();
    window.stage.addChild(new PreviousMainConstructor());

    stage.nativeWindow.close();
}

this just opens a new utility window, and closes the main application window

1
votes

you have to set the NativeWindowType of your window via NativeWindowInitOptions's type property when you instantiate a window.

more here: AIR Window Basics

-1
votes

this.type = NativeWindowType.UTILITY;