header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Patrik
Points:0
Posts:0

6/26/2010 11:38:31 PM

Title: Window inactive


How to make a window inactive?



1
RedBull
Points: 0
Posts:0
6/27/2010 12:35:10 AM



use myWindow.enabled= false;

2
Flash_Guy
Points: 830
Posts:0
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

3
abhishek
Points: 0
Posts:0
7/5/2010 3:51:08 AM



how to show hidden app again ?
is need to set timer to show window again ?
:)

4
Rex
Points: 1180
Posts:0
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()
}


5
abhishek
Points: 0
Posts:0
7/5/2010 8:15:54 AM



thx frnd for ur reply,
this is good code sample
:)


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 6+0 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions