Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

pause and resume app

New Here ,
Apr 19, 2020 Apr 19, 2020
how to pause and resume app when clicking home button in AS3 ? please help!
193
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 19, 2020 Apr 19, 2020

you can use:

 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 20, 2020 Apr 20, 2020

how about the function?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 20, 2020 Apr 20, 2020
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines