Skip to main content
Participant
April 19, 2020
Question

pause and resume app

  • April 19, 2020
  • 1 reply
  • 218 views
how to pause and resume app when clicking home button in AS3 ? please help!
    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    April 19, 2020

    you can use:

     

    NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE, suspendF);
    NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, unsuspendF);

    Participant
    April 20, 2020

    how about the function?

    kglad
    Community Expert
    Community Expert
    April 20, 2020

    you put whatever's needed for you app.  ie, it's not possible to know that answer without seeing your app or you describing what needs to be paused and resumed.