Flash在浏览器全屏 [英] Flash in a browser to full screen

查看:271
本文介绍了Flash在浏览器全屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能让我的Flash应用程序在全屏模式下的浏览器?我知道,舞台上可以把在该模式下,但是当我运行应用程序在任何浏览器不起作用。所以,这是可以做到的,但如何?

How can i make my flash applications in a browser in full screen mode? I know that the stage can be put in that mode, but when i run the application in any browser this doesn't work. So, this can be done, but how?

推荐答案

在HTML,包括Flash的SWF,以下参数添加到您的<对象>标签:

In the HTML including the Flash SWF, add the following parameter to your <object> tag:

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

和下面的属性到你&LT;嵌入&GT;标签:

and the following attribute to your <embed> tag:

allowFullScreen="true"

或者,如果您使用的是 SWFObject的(你应该), allowFullScreen参数添加到您的嵌入code。请参阅的各种方式这SWFObject的文档

Or, if you are using SWFObject (as you should be), add the allowFullscreen parameter to your embed code. See the SWFObject documentation for the various ways to this.

在您的Flash / Flex的文件,你需要为用户提供一种方法来启动全屏模式 - 你不能强制全屏未经用户启动它。不管你有用户做的,包括这个code作为应对之道:

In your Flash/Flex file, you need to provide the user a way to initiate fullscreen mode - you cannot force fullscreen without the user initiating it. Whatever you have the user do, include this code as a response to it:

stage.displayState = StageDisplayState.FULL_SCREEN; //Flash
systemManager.stage.displayState = StageDisplayState.FULL_SCREEN; // Flex

这篇关于Flash在浏览器全屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆