Advertisement
Guest User

Untitled

a guest
Feb 14th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. fullScr_btn.addEventListener(MouseEvent.CLICK, fullscr);
  2.  
  3. function fullscr (a:Event)
  4. {
  5. if (stage.displayState == StageDisplayState.NORMAL)
  6. {
  7. ting.width = stage.stageWidth;
  8. ting.height = stage.stageHeight;
  9. ting.x = tong.x; ting.y = tong.y;
  10. stage.displayState = StageDisplayState.FULL_SCREEN;
  11. }
  12. else
  13. {
  14. ting.width = 640; ting.height = 360;
  15. ting.x = 300; ting.y = 200;
  16. stage.displayState = StageDisplayState.NORMAL;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement