Flash内容不会去全屏幕会去、全屏幕、内容、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.di...

我已经找到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.

推荐答案

您需要针对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" />

我添加了样品 SWF 和的 FLA

阅读全文

相关推荐

最新文章