No exiting event detected for an actionscript mobile project
Would like to launch a dispose() when the program close on Android, but the dispose() never launch....
I am using an Actionscript Mobile Project, and here is the code:
NativeApplication.nativeApplication.addEventListener(Event.EXITING, function(e:Event):void{
dispose();
});
The Exiting Event is not listened by the program when it is closing. Is that this event is not supported?
How can I detect the program is closing then?
Please help!
