Flash内容不会去全屏幕
问题描述:
我已经找到this但它应该为 SWF
在桌面上工作,而不是在HTML中。
I have found this but it is supposed to work as swf
in the desktop, not in the html.
我想通过在两者的code和鼠标事件的开始,使内容的画面。然而stage.displayState 返回 空
。这里是我做的事情;
I am trying to make the content full screen via both at the beginning of the code and mouse event. However stage.displayState
returns null
. Here is how I do things;
开头:
stage.displayStatus = StageDisplayState.FULL_SCREEN_INTERACTIVE;
然后
fullScreenButton.addEventListener(MouseEvent.CLICK, DoFullScreen);
function DoFullScreen(e:MouseEvent)
{
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
}
和在功能上, stage.displayState
跟踪空
正如我以前说过。
and in the function, stage.displayState
traced null
as I said before.