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

Pausing or stopping a game on deactivate

Explorer ,
Sep 18, 2013 Sep 18, 2013

Hi guys...

I am using flash builder 4.6 and I am creating an AIR game (for mobile) ... I used to use Flash Pro (CS6) before and, to pause the game I have used:

NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE, onDeactivate);

function onDeactivate(e:Event):void {

stop();

}

and that was possible, of course, because Flash Pro is based on timeline...

Now... how can I do the same with Flash Builder?

Thanks!!!

TOPICS
Development
487
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
Adobe Employee ,
Sep 18, 2013 Sep 18, 2013
LATEST

Have you tried stage.addEventListener(Event.DEACTIVATE, onDeactivate) with flash builder?

Regards,

Nimit

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