Flash 影片上传后不循环播放

发布于 2024-12-09 11:49:52 字数 659 浏览 0 评论 0原文

我将 FLV 文件导入到 FLA flash 文件中,并将其导出为 SWF 影片。

我想将其嵌入到我的网站中,并且希望它在结束后循环播放。

我已经检查了以下内容:

  • 完全上传
  • 文件已使用最新版本的 flash
  • “发布预览 > Flash”在 Adob​​e Flash CS4 中工作正常
  • “发布预览 > HTML”在 Adob​​e 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 技术交流群。

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

发布评论

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

评论(2

飘然心甜 2024-12-16 11:49:52

在您的网站上播放循环视频并不是一个好主意。大多数视频播放器允许用户手动重播视频。如果您仍想循环播放视频,请阅读

您之前的代码适用于 ActionScript 2(旧代码)。以下是 AS3 的代码:

 import fl.video.VideoEvent;
 flvPlayer.addEventListener(VideoEvent.COMPLETE, videoFinished);
 function videoFinished(event:VideoEvent){
        flvPlayer.play();
 }; 

您可以从此处下载 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:

 import fl.video.VideoEvent;
 flvPlayer.addEventListener(VideoEvent.COMPLETE, videoFinished);
 function videoFinished(event:VideoEvent){
        flvPlayer.play();
 }; 

You can download Flash Builder from here. That's the IDE (Integrated Development Environment) you heard about.

被你宠の有点坏 2024-12-16 11:49:52

我已经弄清楚了。

结果我需要在带有 FLV 组件的帧的动作脚本的开头有一个 stop() :

stop();
var listener:Object = new Object();
listener.complete = function():Void {
    flvPlayer.play();
}
flvPlayer.addEventListener("complete", listener);

I've figured it out.

Turns out I needed a stop() at the beginning of my actionscript for the frame with the FLV component:

stop();
var listener:Object = new Object();
listener.complete = function():Void {
    flvPlayer.play();
}
flvPlayer.addEventListener("complete", listener);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文