在javascript中检测Flash电影的结束

Luc*_*Luc 9 javascript flash

有没有办法检测Flash电影的结束(OOTB,使用某种闪回回调).

或者,有没有办法知道电影的长度?

更新:

IsPlaying()看起来很有前途(定期检查它),但事实证明,没有人再创建直接的swfs了; 现在,内容嵌入在主层中,当内容播放时,主电影停止播放,IsPlaying始终为假...

Sim*_*ver 3

var movie = window.document.movie

if(movie.TCurrentFrame("/") == movie.TotalFrames())
    alert("Movie Finished");
Run Code Online (Sandbox Code Playgroud)

或者你可以有:

if (!movie.IsPlaying())
    alert("Movie Stopped");
Run Code Online (Sandbox Code Playgroud)

但这并不是你真正想要的。