Posted By

brewsie on 04/16/10


Tagged

flash focus


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

socialflasher
damarev
dubogii


flash focus detection


 / Published in: ActionScript 3
 

  1. function main():void
  2. {
  3. stage.addEventListener(Event.DEACTIVATE, windowNotActive);
  4. stage.addEventListener(Event.ACTIVATE, windowActive);
  5. }
  6. main();
  7.  
  8. function windowNotActive(e:Event):void
  9. {
  10. trace("NOT ACTIVE");
  11. }
  12.  
  13. function windowActive(e:Event):void
  14. {
  15. trace("ACTIVE");
  16. }

Report this snippet  

You need to login to post a comment.