Skip to content

Instantly share code, notes, and snippets.

@arpit
Created October 7, 2011 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arpit/1269327 to your computer and use it in GitHub Desktop.
Save arpit/1269327 to your computer and use it in GitHub Desktop.
Minimize an application to dock in Adobe AIR
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