Flash 影片上传后不循环播放
我将 FLV 文件导入到 FLA flash 文件中,并将其导出为 SWF 影片。
我想将其嵌入到我的网站中,并且希望它在结束后循环播放。
我已经检查了以下内容:
- 完全上传
- 文件已使用最新版本的 flash
- “发布预览 > Flash”在 Adobe Flash CS4 中工作正常
- “发布预览 > HTML”在 Adobe Flash CS4
Actionscript 解决方案 中也工作正常尝试过:
到 FLV 组件:
on (complete){
this.autoRewind=true;
this.play();
}
到放置视频的帧:
var myLis:Object = new Object;
myLis.complete = function(){
flvPlayer.play();
}
flvPlayer.addEventListener("complete", myLis);
过去一周我一直在看这个,但无法弄清楚。 我听说我可能会检查一个名为“IDE”的东西,但我不知道那是什么或如何检查它?任何帮助都会创造奇迹。
谢谢你!!
I imported an FLV file to my FLA flash file, and exported it as an SWF movie.
I want to embed it into my website, and I want it to loop after it ends.
I've already checked the following:
- files are fully uploaded
- using the latest version of flash
- "Publish Preview > Flash" works fine in Adobe Flash CS4
- "Publish Preview > HTML" also works fine in Adobe Flash CS4
Actionscript solutions I've tried:
To the FLV component:
on (complete){
this.autoRewind=true;
this.play();
}
To the frame where the video was placed:
var myLis:Object = new Object;
myLis.complete = function(){
flvPlayer.play();
}
flvPlayer.addEventListener("complete", myLis);
I've been looking at this for the past week and can't figure it out.
I heard that I might check something called "IDE" but I have no idea what that is or how to check that? Any help would do wonders.
Thank you!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在您的网站上播放循环视频并不是一个好主意。大多数视频播放器允许用户手动重播视频。如果您仍想循环播放视频,请阅读
您之前的代码适用于 ActionScript 2(旧代码)。以下是 AS3 的代码:
您可以从此处下载 Flash Builder。这就是您听说过的 IDE(集成开发环境)。
Having a looping video on your site is not really a good idea. Most video players allow the user to replay the video manually. If you still want to loop the video, read on
Your earlier code is for ActionScript 2 (the old one). Here's the code for AS3:
You can download Flash Builder from here. That's the IDE (Integrated Development Environment) you heard about.
我已经弄清楚了。
结果我需要在带有 FLV 组件的帧的动作脚本的开头有一个 stop() :
I've figured it out.
Turns out I needed a stop() at the beginning of my actionscript for the frame with the FLV component: