Flash 影片不循环(即使循环参数设置为“true”)

发布于 2024-12-07 18:11:31 字数 987 浏览 0 评论 0 原文

我有以下嵌入式 Flash 代码:

<object width="647" height="483" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"> 
<param name="salign" value="lt" /> 
<param name="quality" value="high" />   
<param name="scale" value="noscale" /> 
<param name="wmode" value="transparent" /> 
<param name="loop" value="true" />
<param name="play" value="true" />
<param name="movie" value="http://domain.com/movie.swf" />  
<embed width="647" height="483" quality="high" scale="noscale" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://domain.com/movie.swf" wmode="transparent"> 
</embed>
</object>

我一直试图让它在播放完毕后循环播放,但即使将“loop”参数设置为“true”,它似乎也不起作用。我在网上看到flash文件可能有一些东西(从原始的.fla导出),但这实际上是我导入到Flash中的.flv文件,并导出为.swf文件。

任何想法都会非常有帮助!谢谢。

I have the following embedded flash code:

<object width="647" height="483" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"> 
<param name="salign" value="lt" /> 
<param name="quality" value="high" />   
<param name="scale" value="noscale" /> 
<param name="wmode" value="transparent" /> 
<param name="loop" value="true" />
<param name="play" value="true" />
<param name="movie" value="http://domain.com/movie.swf" />  
<embed width="647" height="483" quality="high" scale="noscale" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://domain.com/movie.swf" wmode="transparent"> 
</embed>
</object>

I've been trying to get it to loop after it finishes playing, but it doesn't seem to work even with the "loop" parameter set to "true." I read online that there may be something with the flash file (exporting from the original .fla), but this is actually a .flv file that I imported into Flash, and exported as an .swf file.

Any ideas would be really helpful! Thanks.

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

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

发布评论

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

评论(2

如若梦似彩虹 2024-12-14 18:11:31

有几个选项:

  1. 查看 autoRewind
  2. 看看VideoEvent.COMPLETEseek()

后者的复制和粘贴示例:

import fl.video.FLVPlayback;
import fl.video.VideoEvent;

YOUR_VIDEO_INSTANCE_NAME.addEventListener("complete", _replay);

function _replay(e:VideoEvent):void
{
    var vid:FLVPlayback = FLVPlayback(e.target);

    vid.seek(0);
    vid.play();
}

A couple of options:

  1. Look at autoRewind
  2. Look at a combination of VideoEvent.COMPLETE and seek()

A copy&paste example for the latter:

import fl.video.FLVPlayback;
import fl.video.VideoEvent;

YOUR_VIDEO_INSTANCE_NAME.addEventListener("complete", _replay);

function _replay(e:VideoEvent):void
{
    var vid:FLVPlayback = FLVPlayback(e.target);

    vid.seek(0);
    vid.play();
}
薔薇婲 2024-12-14 18:11:31

事实上,我在这里找到了答案,它的作用就像一个魅力:
http://groups.google.com/group/macromedia.flash/browse_thread/thread/7e1cc960a​​1ba9f29/dad99bda911f8d71

不过,感谢您查看!

Actually, I found the answer here which worked like a charm:
http://groups.google.com/group/macromedia.flash/browse_thread/thread/7e1cc960a1ba9f29/dad99bda911f8d71

Thanks for looking at it though!

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