RE: NativeApplication exiting event in Windows

2016-01-21 Thread osman
This really feels to me like something isn't working properly in Flex or AIR. Should I file a bug? -- View this message in context: http://apache-flex-users.246.n4.nabble.com/NativeApplication-exiting-event-in-Windows-tp11792p11805.html Sent from the Apache Flex Users mailing list archive

Re: NativeApplication exiting event in Windows

2016-01-21 Thread Alex Harui
If you have time to investigate, please create a simple ActionScript-only project (No Flex code) and see if you have the same issue (I expect you will). And then you will have to file a bug against AIR at bugbase.adobe.com HTH, -Alex On 1/21/16, 6:39 AM, "osman" wrote:

RE: NativeApplication exiting event in Windows

2016-01-20 Thread Nicolas Flandrin
Hey Osman, We do this like this : stage.nativeWindow.addEventListener(Event.CLOSING, onClosing); private function onClosing(pEvent:Event):void { pEvent.preventDefault(); //doYourClosingJob //call this to finally close the app stage.nativeWindow.close(); } -Message

Re: NativeApplication exiting event in Windows

2016-01-20 Thread Héctor A
Did you check this thread in depth: https://forums.adobe.com/thread/490031?start=0=0 ? It may contain useful info for you. Also, note that using this event doesn't mean that your application won't be able to be closed, that could be a disaster, there are ways of forcing your app to be closed, and

RE: NativeApplication exiting event in Windows

2016-01-20 Thread osman
This isn't working. It works fine if I try to close the application myself. But if I logout of windows, windows immediately kills the application. Is this a bug? Here is the code: http://pastebin.com/M1Gne5j6 -- View this message in context: