问题标签 [swfobject]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
2 回答
1827 浏览

flash - Firefox 3.5.3 Windows + Flash + swfobject wmode问题

我在使用 wmode 嵌入 Flash 的 Firefox 3.5.3 Windows 时遇到问题。

如果我将 wmode 参数设置为 'transparent' 或 'opaque' Firefox 3.5.3 Win XP (Flash player 10.0.32.18 r32) 完全无法嵌入电影,但它适用于其他一切,包括同一台机器上的 IE 和Mac OS 中相同的 FF。

有人可以帮忙吗?

我在这里整理了这个问题的测试页。如果它有效,您应该会看到视频播放器和流媒体电影。

http://mutualsforum.wanderingbear.co.uk/flashtest.html

谢谢

0 投票
3 回答
1401 浏览

codeigniter - codeigniter 站点,swfobject 未完全加载 swf

我有一个奇怪的问题。我有一个应该加载 swf 的视图。swf 是用 Flex 编译的,并且显示了 mxml 预加载器,但它加载了一个空白屏幕。当我直接指向文件时,它会完全加载并且工作正常。

其他可能相关的信息: swf 通过 GET 请求调用数据库 该站点是使用 codeigniter 构建的 我正在使用 swfobject 加载 swf

你可以在这里看到它的辉煌:http://thetoad.flattoads.com:16080/~iopdev/CI/index.php?c = moodtotem&m=index

我要疯了!

0 投票
1 回答
1300 浏览

javascript - 如何使用 swfobject / JavaScript 在 Flash 中动态检索页面 URL

我使用 Flash 和 AS3 创建了自己的视频播放器。在 Flash 电影中,我有一个链接,允许用户在他们自己的网站上复制对象嵌入代码和页面 url,类似于 youtube。播放器一切正常,并根据您拥有的页面检索正确的 flv。我也有对象嵌入代码工作正常。我遇到的问题是获取页面 URL。

从下面的代码可以看出,我正在使用 swfobject2.2 将电影嵌入到我的网页上,并且我正在使用 FlashVars 在播放器中调用和播放 .flv。我只需要一些 JavaScript 代码就可以从任何页面返回特定的 url:flashvars.pageURL = " ";

我还应该提到,我在 Eclipse 中使用 jsp。

有谁知道我会怎么做?我认为它可以使用 JavaScript 来完成。

谢谢德克兰
_

0 投票
2 回答
5260 浏览

javascript - CSS 菜单仅在 IE (SWFObject) 中隐藏在 flash 后面

我知道这个问题被问了很多,我在发布之前检查了所有“相关问题”,我尝试了所有我能找到的不同解决方案,但无济于事。

我正在站点页面上的一个站点上工作,并且有一个使用原始创建者使用的 Pop Menu Magic 的标题导航,它目前隐藏在仅在 IE 中播放的 swf 下,而在 Firefox 中完美运行。

我已经尝试了一切,从将 wmode 更改为透明或不透明,在不同的 div 上使用 z-index,确保它们具有定义的位置等。

任何帮助将不胜感激。

这是“嵌入”代码:

再次感谢您的帮助。

Stack Overflow 最初只让我发布 1 个超链接,所以我会将 css 放在评论中。

0 投票
1 回答
1621 浏览

jquery - iframe swfObject 加载问题

我正在单击 iframe 中的链接并使用 jquery 将 html 文件加载到父窗口中的 div 中。这确实将内容加载到父窗口中的 div 中(我使用 top.document 来引用它),但该 html 文件的一部分正在加载带有新变量的 swfobject,以播放不同的 swf。它在一页上都可以正常工作,但是如果我从 iframe 调用它,它不会重新加载 SWFObject,但会加载 html 文件的其余部分......我很困惑。

0 投票
4 回答
1905 浏览

javascript - Swfobject 和 MooTools:动态电影高度

问候。

我正在为 Flash-HTML 混合网站开发一个动画主页,为了标准,我的解决方案被证明是困难的。我不是 Javascript 专业人士,因此不胜感激!

这是破败:

对于 Flash 用户,HTML 页面加载可变高度的 AS3 Flash 电影,该电影将从556 像素高开始,在完成其动画序列后,通过 Actionscript + JavaScript 补间到250 像素高

为了开始这个电影序列—— (左下) ——我试图通过 MooTools 设置 Flash 电影的初始高度,所以如果用户没有启用 Flash 或 Javascript,他们将看到较短高度的图像区域显示替代图像内容和 HTML 内容(右下)

Element.setStyle设置高度很好,直到 swfObject 运行,此时电影崩溃,因为我没有通过 CSS 指定高度。如果用户没有 Flash,则默认为静态图片的高度。

所以这是我的问题:有谁知道如何将高度变量设置为宽度/高度@ 100% 时动态传递给 swfobject?我是否会无缘无故地尝试使用两个页面高度?

图像序列:
左 -初始 Flash 影片,下方有 HTML 导航
右 -调整大小的影片在序列末尾,下方有 HTML 导航和内容,看起来与非 Flash 版本相同(静态图像)

替代文字 http://client.deicreative.com/op/images/twopages.jpg

0 投票
2 回答
266 浏览

javascript - SWFAddress 和 JSInterface 之间的区别...选择哪个?

SWFObject / SWFAddressJSInterface之间有什么区别?

JSInterface 具有更多功能,但 SWFAddress 似乎是标准,所以我想知道您选择使用什么以及为什么,以及是否可以同时使用它们。

你甚至可以用 JSInterface 做类似 SWFAddress 的事情吗?我似乎不知道如何做“后退”、“前进”,以及更新/收听网址更改...

0 投票
2 回答
430 浏览

apache-flex - swfobject 奇怪的行为

我正在使用 swfobject 嵌入我的闪存。它在做奇怪的事情。

我使用 FlexBuilder 创建了一个简单的文本字段。这是一个扩展 Sprite 的 AS3 项目。我将其宽度设置为 640,高度设置为 450。然后,在页面的 swfobject 参数中,我还设置了 640 x 450。我将背景设置为漂亮、红色和丑陋,以便您可以看到它。:)

http://www.brighttext.com/flash/TextFieldSetFormat.html

它似乎是正确的尺寸。但是我有一个文本字段,它的大小和高度应该几乎相同。这在 FlexBuilder 中运行良好(大小合适),但是一旦我添加 swfobject 就全部搞砸了 谁能看到发生了什么?

编辑注:我只是看了看,它看起来还不错。但后来我刷新了页面,文本字段是邮票大小(再次——这是我看到的原始行为。)它现在在 Firefox 中看起来不错,但在 IE8 中却不行。Flash 应该在所有浏览器中看起来都一样!!???

AS3 代码:

0 投票
2 回答
1178 浏览

jquery - 你能在页脚中加载 swfobject.js 或 jquery.swfobject

你能在页脚中加载 swfobject.js 或 jquery.swfobject,在被替换的 div 下方吗?

我很想将我所有的 javascript 加载保持在页面底部,但如果在替换任何 div 之前没有加载 swfobject,它似乎会失败。

裸骨示例:

0 投票
1 回答
1057 浏览

asp.net - How best to embed multiple Flash Player instances using swfobject via a usercontrol?

I have a ListView on a Page within a MasterPage and some very ugly ugly autogenerated IDs.

Such as..."ctl00_workbenchPlaceHolder_ListView1_ctrl1_LibItem2One"

Using swfobject.embedSWF(...) requires me to hand over the id of a div on my page that can be replaced with object/embed markup depending on the browser context.

My aim is to show the user a collection of video's they have uploaded to their website so they can review them and change some related data if desired.

Hence the ListView which is populated via a SQLDataSource which currently provides a number of URLs pointing to .flv files.

But it ain't gonna work if I put a <div id="replaceme"></div>' in my user control because I may then have more than one id="replaceme" and poor swfobject won't like it.

So my evil solution is to put an <asp:Literal> in my usercontrol and build the script, function name and div tag id as a string.

ApplyVideoConfiguration is called if the library object retreived from the database is a video and switches to the relevant View of a MultiView control.

I was wondering, just how bad a solution is this, I'm really completely inexperienced when it comes to best practices but my instincts are telling me this is bad, although it does succeed in the aim of embedding some Flash Player instances.

Can anyone help me make it beautiful?