Posted By

arpo on 01/27/09


Tagged

event screen full exit


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

enajenkins
iamgowan
TrentSkunk
Onfire60


on fullscreen exit event


 / Published in: ActionScript 3
 

This is a way to detect when Flash exit full screen mode.

  1. import flash.display.StageDisplayState;
  2.  
  3. this.stage.addEventListener(Event.RESIZE, this.handleStageResize);
  4.  
  5. function handleStageResize(e:Event):void
  6. {
  7.  
  8. if (stage.displayState == StageDisplayState.FULL_SCREEN) {
  9. //Do your full screen stuff
  10. }else {
  11. //Do your back to normal screen stuff
  12. }
  13.  
  14. }

Report this snippet  

You need to login to post a comment.