Flash content not go full screen

左心房为你撑大大i 提交于 2019-12-13 05:53:47

问题


I have found this but it is supposed to work as swf in the desktop, not in the html.


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;

at the beginning: stage.displayStatus = StageDisplayState.FULL_SCREEN_INTERACTIVE;

and then

fullScreenButton.addEventListener(MouseEvent.CLICK, DoFullScreen);

function DoFullScreen(e:MouseEvent)
{
    stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
}

and in the function, stage.displayState traced null as I said before.


回答1:


You need to target FP 11.3+ for StageDisplayState.FULL_SCREEN_INTERACTION

for below versions : StageDisplayState.FULL_SCREEN

and you have to add that flash param in your html

<param name="allowFullScreen" value="true" />

I added the sample swf and fla



来源:https://stackoverflow.com/questions/30774988/flash-content-not-go-full-screen

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!