Flash内容不会去全屏幕 [英] Flash content not go full screen
问题描述
我已经找到<一href="http://stackoverflow.com/questions/1997155/problems-with-stage-displaystate-its-null-even-after-assignments-fullscreen">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 返回<$ C C $> 空
。这里是我做的事情;
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.
推荐答案
您需要针对FP 11.3+的 StageDisplayState.FULL_SCREEN_INTERACTION
You need to target FP 11.3+ for StageDisplayState.FULL_SCREEN_INTERACTION
下面的版本: StageDisplayState.FULL_SCREEN以
,你必须添加闪存参数在你的HTML
<param name="allowFullScreen" value="true" />
这篇关于Flash内容不会去全屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!