2 Replies Latest reply: Jul 8, 2014 12:29 AM by Sharmi_07 RSS

    NativeApplication.nativeApplication.exit() not exiting properly

    Sharmi_07 Community Member

      Hi,

      I want to exit my Air aplication from my ANE. Using dispatchevent I communicate from ANE to Air application to exit the app completely.

      I tried using, NativeApplication.nativeApplication.exit(), but it is not completely closing the application.

       

      function applicationExit(){

        var exitingEvent = new Event(Event.EXITING, false, true);

        NativeApplication.nativeApplication.dispatchEvent(exitingEvent);

        if (!exitingEvent.isDefaultPrevented()) {

      NativeApplication.nativeApplication.exit();

        }

      }

       

      So how do I completely exit/close my air application?

       

      Thansk,

      Sharmi.