Skip to main content
Known Participant
October 21, 2013
Question

No exiting event detected for an actionscript mobile project

  • October 21, 2013
  • 0 replies
  • 328 views

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!

This topic has been closed for replies.