1

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

gustyaquino
  • 767
  • 1
  • 7
  • 28

3 Answers3

1

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

more here: AIR Window Basics

Chunky Chunk
  • 16,553
  • 15
  • 84
  • 162
1

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

ansiart
  • 2,563
  • 2
  • 23
  • 41
-1

this.type = NativeWindowType.UTILITY;

s.jor.ibra
  • 307
  • 1
  • 5
  • 16