Skip to main content
Inspiring
September 18, 2013
Question

Pausing or stopping a game on deactivate

  • September 18, 2013
  • 1 reply
  • 493 views

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!!!

This topic has been closed for replies.

1 reply

Adobe Employee
September 19, 2013

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

Regards,

Nimit