全屏模式下的Flash在< embed>中工作,但不能在< a>内工作标签 [英] Flash in fullscreen mode works in <embed>, but not work within <a> tag

查看:119
本文介绍了全屏模式下的Flash在< embed>中工作,但不能在< a>内工作标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个代码

 < div id =c01class =hider> 
< a href =flash.swfclass =bump> flash< / a>
< / div>

,并在bumpbox(lightbox选项)窗口中显示flash内容。它完美的作品,但在Flash动画中有一个全屏按钮,它不起作用。其他按钮(停止动画)工作正常。

我发现,用这个

 < embed src =flash.swfwidth =100%height =100%allowFullScreen =true> < /嵌入> 

全屏按钮可以正常工作,但是Flash动画会在页面加载后运行,那些动画,所以我只需要一次只运行其中的一个。我需要使其可点击(内),并与工作全屏按钮在同一时间。可能吗?谢谢!

解决方案

您遇到的问题其实来自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,
容器: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列表应该很容易,看起来像:

  params:{quality:high,allowScriptAccess:总是,wMode:window,swLiveConnect:true} 

你只需要添加全屏权限:

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


I have this code

<div id="c01" class="hider">
< a href="flash.swf" class="bump">flash</a>
</div>

and it displays flash content within a bumpbox (lightbox alternative) window. It works perfectly, but there is a fullscreen button in the flash animation and it do not works. The other button (to stop the animation) works ok.

I find out, that with this

<embed src="flash.swf" width="100%" height="100%" allowFullScreen="true"> </embed>

fullscreen button works fine, but the flash animation runs since the page is loaded and I have about 50 of those animations, so I need to run only one of them at a time. I need to make it clickable (within ) and with working fullscreen button at the same time. Is it possible? Thank you!

解决方案

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}

这篇关于全屏模式下的Flash在&lt; embed&gt;中工作,但不能在&lt; a&gt;内工作标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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