Posted By

mioestudio on 03/30/11


Tagged

fullscreen pantalla completa


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Josueriv
Praimen


fullscreen as3


 / Published in: ActionScript 3
 

crear boton para cambiar de pantalla completa a normal

  1. import flash.display.StageDisplayState;
  2.  
  3. function goFullScreen():void
  4. {
  5. if (stage.displayState == StageDisplayState.NORMAL) {
  6. stage.displayState=StageDisplayState.FULL_SCREEN;
  7. } else {
  8. stage.displayState=StageDisplayState.NORMAL;
  9. }
  10. }
  11.  
  12. stage.addEventListener(MouseEvent.CLICK, _handleClick)
  13.  
  14. function _handleClick(event:MouseEvent):void
  15. {
  16. goFullScreen();
  17. }

Report this snippet  

You need to login to post a comment.