In working on my Uploader tool, I had to do a bit of research on how to drag, minimize, and close an AIR app. Below is the summarized code in case anyone else is wondering how to do this.
public class Main extends Sprite
public function Main():void
// button events
private function exitApp(event:MouseEvent):void
private function minimizeApp(event:MouseEvent):void
private function dragApp(event:MouseEvent):void
Three buttons on the root of the flash file each with a listener that handles an action when the mouse is clicked on it. The drag button has to use ‘MOUSE_DOWN’ instead of ‘CLICK’ to work. NativeApplication is the AIR app and it looks to see which window is currently active to send the commands for.