错误地嵌入 Flash 影片 - 我有罪
我尝试根据另一个用户的建议,使用嵌入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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你的对象中缺少很多逗号:
应该是
另外,你有一个名为“movie”的 div,对吧? 您是否记得包含 swfobject.js ?
You're missing a lot of commas in your objects:
should be
Also, you have a div named 'movie' right? Did you remember to include the swfobject.js?
谢谢 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 :(