var fullscreenMode:Boolean = false;
fs_btn.addEventListener(MouseEvent.CLICK,onbtnHandle);
function onbtnHandle(evt:MouseEvent):void
{
if (fullscreenMode==false)
{
fullscreenMode
=true;
stage.displayState
=StageDisplayState.FULL_SCREEN;
}
else if (fullscreenMode == true)
{
fullscreenMode
=false;
stage.displayState
=StageDisplayState.NORMAL;
}
}
//舞台上按钮名字是fs_btn

 

 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2021-12-26
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-01-12
猜你喜欢
  • 2021-08-06
  • 2021-11-19
  • 2021-07-07
  • 2022-02-26
  • 2022-12-23
  • 2021-09-15
  • 2021-10-15
相关资源
相似解决方案