Created
October 7, 2011 02:55
-
-
Save arpit/1269327 to your computer and use it in GitHub Desktop.
Minimize an application to dock in Adobe AIR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function minimizeToDock():void{ | |
nativeWindow.addEventListener(Event.CLOSING, function(event:Event):void{ | |
event.preventDefault(); | |
nativeWindow.visible = false; | |
nativeApplication.addEventListener(InvokeEvent.INVOKE, function(event:InvokeEvent):void{ | |
trace(" Invoking..."); | |
nativeWindow.visible = true; | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment