swf 在内工作仅 - 不适用于凹凸箱(灯箱替代品)

发布于 2024-11-28 00:01:00 字数 279 浏览 0 评论 0原文

我有这个代码 http://www.bodom.eu/fsproblem 标签内有一个 .swf,当您单击全屏按钮时,它就可以工作。

当您单击 flash01 链接时,<< 中会有相同的 .swf 文件。 a>标签(在灯箱样式窗口中),它不起作用。 我所需要的只是使凹凸框窗口中的全屏按钮起作用。非常感谢。

Bumpbox 使用 mootools 和 flowplayer。

I have this code http://www.bodom.eu/fsproblem
There is one .swf within tag and when you click on full screen button, it WORKS.

When you click on flash01 link, there is the same .swf within < a> tag (in lightbox style window), where it does NOT WORK.
All I need is to make work the fullscreen button in the bumpbox window. Thank you very much.

Bumpbox use mootools and flowplayer.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

粉红×色少女 2024-12-05 00:01:00

您遇到的问题实际上来自 Mootools。 Mootools 有一个名为 Swiff 的 Flash 嵌入类,这是 BumpBox 在传递 SWF 时使用的类在你的链接中。

不幸的是,我认为你要么必须侵入 BumpBox 要么 Mootools 才能获得全屏许可工作。

如果您查看 BumpBox 2.0.1 的扩展版本,您将在第 372 行左右看到 Swiff 的实例化位置:

var obj = new Swiff(content, {
    id: 'video',
    width: maxw-40,
    height: maxh-40,
    container: div
})

您可以在此处传递所需的附加参数,该参数看起来像这样

var obj = new Swiff(content, {
    id: 'video',
    width: maxw-40,
    height: maxh-40,
    container: div,
    params: {
        allowFullScreen: true
    },
})

:必须对 Swiff 类本身进行调整。打开 Mootools 并搜索 Swiff=new Class。这将引导您找到创建 Flash 对象的代码。从那里找到参数列表应该很容易,它看起来像:

params:{quality:"high",allowScriptAccess:"always",wMode:"window",swLiveConnect:true}

并且您只需要添加全屏权限:

params:{allowFullScreen:true,quality:"high",allowScriptAccess:"always",wMode:"window",swLiveConnect:true}

The issue you're having is actually coming from Mootools. Mootools has an Flash embed class called Swiff, which is what BumpBox uses when you pass an SWF in your link.

Unfortunately, I think you're either going to have to hack into BumpBox or Mootools to get full screen permission working.

If you look into the expanded version of BumpBox 2.0.1, you will see where Swiff is instantiated, around line 372:

var obj = new Swiff(content, {
    id: 'video',
    width: maxw-40,
    height: maxh-40,
    container: div
})

You may be able to pass in the additional parameter you require here, which would look something like this:

var obj = new Swiff(content, {
    id: 'video',
    width: maxw-40,
    height: maxh-40,
    container: div,
    params: {
        allowFullScreen: true
    },
})

If that fails you will have to make the adjustment to the Swiff class itself. Open up Mootools and search for Swiff=new Class. That will lead you to the code that creates the Flash object. Finding the params list should be easy from there, it looks like:

params:{quality:"high",allowScriptAccess:"always",wMode:"window",swLiveConnect:true}

and you would just need to add the fullscreen permission:

params:{allowFullScreen:true,quality:"high",allowScriptAccess:"always",wMode:"window",swLiveConnect:true}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文