Actionscript 3 flv电影监听器的结尾

Actionscript 3 flv电影监听器的结尾,actionscript-3,flash,flv,flvplayer,Actionscript 3,Flash,Flv,Flvplayer,我期待着有一个事件监听器,这使我有可能在FLV电影播放结束后开始我的动作脚本 在AS2中,我有VideoEvent.COMPLETE函数,但在AS3中不起作用 我正在使用Flash Action Player:11.4检查是否添加了以下语句 import fl.video.VideoEvent; 如果仍然不工作,则检查闪存版本(必须高于10) 但没有解决方案,那么尝试以下方法 检查是否为“事件”而不是“视频事件” yourFLVPlayer.addEventListener(Event.CO

我期待着有一个事件监听器,这使我有可能在FLV电影播放结束后开始我的动作脚本

在AS2中,我有VideoEvent.COMPLETE函数,但在AS3中不起作用


我正在使用Flash Action Player:11.4检查是否添加了以下语句

 import fl.video.VideoEvent;
如果仍然不工作,则检查闪存版本(必须高于10)

但没有解决方案,那么尝试以下方法

检查是否为“事件”而不是“视频事件”

yourFLVPlayer.addEventListener(Event.COMPLETE,onFLVPlayingCompleted)

如果event.complete不起作用,我将进行另一次试用。请尝试以下代码。检查播放时间

 yourFLVPlayer.addEventListener(VideoEvent.STATE_CHANGE, flvPlayerStateChanged);     

 function flvPlayerStateChanged(e:VideoEvent):void
 {
      if (yourFLVPlayer.getVideoPlayer(0).state != "playing")
      {     
          trace("Stopped playing FLV"); 

          //You might check for playhead time
          trace(yourFLVPlayer.playheadTime);

          //if playheadtime is equal to total time of flv then you call it as end of FLV

      }
 }

检查是否添加了以下语句

 import fl.video.VideoEvent;
如果仍然不工作,则检查闪存版本(必须高于10)

但没有解决方案,那么尝试以下方法

检查是否为“事件”而不是“视频事件”

yourFLVPlayer.addEventListener(Event.COMPLETE,onFLVPlayingCompleted)

如果event.complete不起作用,我将进行另一次试用。请尝试以下代码。检查播放时间

 yourFLVPlayer.addEventListener(VideoEvent.STATE_CHANGE, flvPlayerStateChanged);     

 function flvPlayerStateChanged(e:VideoEvent):void
 {
      if (yourFLVPlayer.getVideoPlayer(0).state != "playing")
      {     
          trace("Stopped playing FLV"); 

          //You might check for playhead time
          trace(yourFLVPlayer.playheadTime);

          //if playheadtime is equal to total time of flv then you call it as end of FLV

      }
 }

也许这回答了你的问题。。。也许这回答了你的问题。。。yourFLVPlayer.addEventListener(Event.COMPLETE、onFLVPlayingCompleted);这是正确的。谢谢问题是,VideoEvent.Comlete更改为Event.Complete.yourFLVPlayer.addEventListener(Event.Complete,onFLVPlayingCompleted);这是正确的。谢谢问题是,VideoEvent.com已更改为Event.Complete。