Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

Pausing or stopping a game on deactivate

$
0
0

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


Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>