错误地嵌入 Flash 影片 - 我有罪

发布于 2024-07-20 03:24:17 字数 965 浏览 7 评论 0原文

我尝试根据另一个用户的建议,使用嵌入Flash的swfobject方法。 然而,我一定没有那么聪明。

下面是我想出的怪物,但没有电影播放,当我按住Ctrl键并单击(Mac)时,我什至无法将其区分为Flash电影......就好像它根本不存在一样。

任何有关如何解决此问题的指示将不胜感激!

<div id="audioPlayer">
<script type="text/javascript">

var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg"
theVolume: "75"
bufferAudio: "0"
infoDisplayTime: "3"
scrollInfoDisplay: "yes"
startPlayingOnload: "yes"
autoAdvance: "yes"
popUpHelp: "yes"
};
var params = {
embed src="mp3s/wimpy_button.swf"
quality="high"
menu: "false"
loop: "false"
quality: "high"
scale: "noscale"
salign: "lt"
bgcolor: "000000"
wmode: "transparent"
allowScriptAccess: "sameDomain"
};
var attributes = {
id: "myDynamicContent",
name: "myDynamicContent"
};

swfobject.embedSWF("mp3s/wimpy_button.swf", "movie", "250", "140",
"9.0.0","Scripts/expressInstall.swf", flashvars, params, attributes);

</script>

I have tried through another user's suggestion, to use the swfobject methos of embedding Flash. I however, must not be as smart.

Below is the monster I have come up with, but no movie plays, and I cannot even distinguish it as a Flash movie when I control+click (Mac)... as if it doesn't even exist.

Any direction on how I could fix this would be greatly appreciated!

<div id="audioPlayer">
<script type="text/javascript">

var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg"
theVolume: "75"
bufferAudio: "0"
infoDisplayTime: "3"
scrollInfoDisplay: "yes"
startPlayingOnload: "yes"
autoAdvance: "yes"
popUpHelp: "yes"
};
var params = {
embed src="mp3s/wimpy_button.swf"
quality="high"
menu: "false"
loop: "false"
quality: "high"
scale: "noscale"
salign: "lt"
bgcolor: "000000"
wmode: "transparent"
allowScriptAccess: "sameDomain"
};
var attributes = {
id: "myDynamicContent",
name: "myDynamicContent"
};

swfobject.embedSWF("mp3s/wimpy_button.swf", "movie", "250", "140",
"9.0.0","Scripts/expressInstall.swf", flashvars, params, attributes);

</script>

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

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

发布评论

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

评论(2

软糯酥胸 2024-07-27 03:24:17

你的对象中缺少很多逗号:

var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg"
theVolume: "75"
bufferAudio: "0"
infoDisplayTime: "3"
scrollInfoDisplay: "yes"
startPlayingOnload: "yes"
autoAdvance: "yes"
popUpHelp: "yes"
};

应该是

var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg",
theVolume: "75",
bufferAudio: "0",
infoDisplayTime: "3",
scrollInfoDisplay: "yes",
startPlayingOnload: "yes",
autoAdvance: "yes",
popUpHelp: "yes",
};

另外,你有一个名为“movie”的 div,对吧? 您是否记得包含 swfobject.js ?

<script type="text/javascript" src="_js/swfaddress.js"></script>

You're missing a lot of commas in your objects:

var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg"
theVolume: "75"
bufferAudio: "0"
infoDisplayTime: "3"
scrollInfoDisplay: "yes"
startPlayingOnload: "yes"
autoAdvance: "yes"
popUpHelp: "yes"
};

should be

var flashvars = {
wimpyApp: "mp3s/wimpy.php",
wimpySkin: "mp3s/skins/skin_transparent.xml",
defaultVisualExt: "jpg",
theVolume: "75",
bufferAudio: "0",
infoDisplayTime: "3",
scrollInfoDisplay: "yes",
startPlayingOnload: "yes",
autoAdvance: "yes",
popUpHelp: "yes",
};

Also, you have a div named 'movie' right? Did you remember to include the swfobject.js?

<script type="text/javascript" src="_js/swfaddress.js"></script>
樱娆 2024-07-27 03:24:17

谢谢 quoo,

我实际上是通过从他们的网站下载更新的 wimpy.swf 并使用它来使其工作的。 在此处的相关帖子中找到了它。

我仍在使用“两次烘焙”方法,因为嘿,它已经存在并且现在可以工作了...但是,我仍在制作副本并尝试此 swfobject 方法。

正如你所说,我将逗号放在 flash 变量中,实际上我的 div 名为“audioPlayer”,所以我将所有出现的“movie”更改为该名称。

我的标头中有 js 文件:

它位于“Scripts”文件夹中。

但仍然不起作用:(

Thanks quoo,

I actually got it to work by downloading an updated wimpy.swf from their site and using that. Found it in a related posting here.

I am still using the "twice baked" method because hey, it was already there and now it works... BUT, I am still working on a copy and trying this swfobject method.

I placed the commas in the flash vars as you said, and actually my div is named "audioPlayer" so I changed all occurrences of "movie" to that.

I have the js file in the header as:

It resides in a "Scripts" folder.

Still not working though :(

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