7/5/2010 7:31:36 AM
Title:
Slowly Hide
Can we make a window slowly hide in Adobe AIR?
7/5/2010 8:05:39 AM
you can change the alpha of the window content , the native window can be made transparent and you can use a time based loop to increase and decrease the alpha. You need to set the NativeWindowInitOptions
// set the options
var myWinOptions:NativeWindowInitOptions = new NativeWindowInitOptions ();
myWinOptions.minimizable = false;
myWinOptions.maximizable = false;
myWinOptions.resizable = false;
myWinOptions.type = NativeWindowType.UTILITY;
myWinOptions.systemChrome = NativeWindowSystemChrome.NONE;
myWinOptions.transparent = true;
// create the window
var myNativeWindow:NativeWindow = new NativeWindow (myWinOptions);
myNativeWindow.activate();
myNativeWindow.stage.addChild(this);
7/5/2010 8:07:52 AM
its not possible to set the alpha of the chrome of the window , so you can just hide and show it . The other way around is that you hide a the actual chrome window and create a window inside the application using the component like pannel and the change its alpha