View Full Version : NativeWindowType

08-07-2008, 12:28 PM
hi, how to work with this Class: NativeWindowType
to have app without taskbar and system chrome ..

tanQ .. ..

08-07-2008, 07:01 PM
sorry, every NativeWindow you create will show up in the taskbar. Hopefully they add will add another option for AIR 2.0 and no its not coming out soon.

to make a window with no chrome this is the code you would use:

var woptions:NativeWindowInitOptions = new NativeWindowInitOptions();
woptions.systemChrome = NativeWindowSystemChrome.NONE;
woptions.transparent = true; // im guessing you want it transparent as well.
var NWindow:NativeWindow = new NativeWindow(woptions);
NWindow.title = "Place Title Here";

are you looking to make a widget application?

08-08-2008, 03:39 PM
TanQ for info .. but it made a new NativeWindow.. I want to set my mainNativeWindow to NativeWindowSystemChrome.NONE mood ...

and i think with woptions.type = NativeWindowType.LIGHTWEIGHT hide taskbar .. !! it is false??

08-09-2008, 01:45 PM
ok, ya in testing the other day i thought i showed up on the taskbar but I guess i made a mistake.

anyways, no LIGHTWEIGHT does not show up in your taskbar.

var dude:MovieClip = new MovieClip();//create an MC to put on the new window
dude.graphics.drawRect(0,0,200, 300);

var woptions:NativeWindowInitOptions = new NativeWindowInitOptions();
woptions.type = NativeWindowType.LIGHTWEIGHT;
woptions.systemChrome = NativeWindowSystemChrome.NONE;
woptions.transparent = false;

var NWindow:NativeWindow = new NativeWindow(woptions);


NWindow.width = 500;
NWindow.height = 500;
NWindow.stage.scaleMode = StageScaleMode.NO_SCALE;

08-09-2008, 06:26 PM
tanQ alooot ..BUt i want LIGHTWEIGHT mood for main window ...

with Your method I have to closed my main app win with this

and make a new win and then change this type ...:rolleyes:

I want to know
what this script not work ???
stage.nativeWindow.type = NativeWindowType.LIGHTWEIGHT;

i want to change stage.type ..... :rolleyes:.....

08-09-2008, 06:33 PM
in finaly i want to make app without taskbar ....(tanQ))))))

08-11-2008, 03:57 PM
I want to make a app without taskbar .... ..hoW?????

08-11-2008, 05:44 PM
lol. you could have just bumped the other thread. since you can't change window type after its been added, the only way i think you can create an application with no taskbar is to create a movieclip with everything inside it. then once the program is started you create a new leightweight window and add the movieclip with everything in it, and then close the main window.

sorry i misunderstood your question several times. lol.

08-11-2008, 05:54 PM
it is tooo bad /:)

08-11-2008, 06:03 PM
ya, but its doable.