6/26/2010 11:38:31 PM
Title:
Window inactive
How to make a window inactive?
6/27/2010 12:35:10 AM
use myWindow.enabled= false;
6/27/2010 12:49:47 AM
In adobe AIR application the activate() function do a set of functions like enabling window, set visibility true, bring to front, maximise etc all together . There is no function like deactivate to reverse the process .
You can mannually set the visibility, Minimise and enable the window .
window.enabled= false; //disables the window
window.visible= false; hides window
7/5/2010 3:51:08 AM
how to show hidden app again ?
is need to set timer to show window again ?
:)
7/5/2010 6:45:25 AM
@abhishek you can use the timer function to show any hidden component or window again after some time . Here is actionscript code
//timer for 5 seconds
windowTimer = new Timer(5000);
windowTimer.addEventListener(TimerEvent.TIMER_COMPLETE, showWindow);
windowTimer.start();
//show window
function showWindow(evt:Event):void{
myWindow.visible=true;
// stop the timer
windowTimer.stop()
}
7/5/2010 8:15:54 AM
thx frnd for ur reply,
this is good code sample
:)