Drag

i am making an air aplication and i made transparent background and i alredy made the close button but i cant make the app be dragable

var myLoader:Loader = new Loader(); 
addChild(myLoader);
myLoader.x = 0;
myLoader.y = 0;
var url:URLRequest = new URLRequest("load.swf"); 
myLoader.load(url); 
var appWindow:NativeWindow = this.stage.nativeWindow;
btn_close.addEventListener(MouseEvent.CLICK, btClose_CLICK);  
function btClose_CLICK(evt:MouseEvent):void {
    appWindow.close(); 
}
appWindow.startMove();
stage.nativeWindow.startMove();

but it dont works startMove(); what did i did wrong pleas help i need this finished by today or tomorrow