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

Pausing or stopping a game on deactivate

Explorer ,
Sep 18, 2013 Sep 18, 2013

Copy link to clipboard

Copied

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

Views

452

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Regards,

Nimit

Votes

Translate

Translate

Report

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