1
나는 내장되지 않은 15 초짜리 비디오를 가지고있다. (URL에서 나온다.) 비디오가 끝나면 어떻게 다음 프레임을 재생할 수 있습니까?동영상이 끝난 후 어떻게해야합니까?
나는 내장되지 않은 15 초짜리 비디오를 가지고있다. (URL에서 나온다.) 비디오가 끝나면 어떻게 다음 프레임을 재생할 수 있습니까?동영상이 끝난 후 어떻게해야합니까?
동영상 재생이 끝나면 전달되는 VideoEvent.COMPLETE
을 참조하십시오. 당신은 FLVPlayback 구성 요소를 사용하는 경우
video.addEventListener(VideoEvent.COMPLETE, _doNext);
function _doNext(e:VideoEvent):void
{
video.removeEventListener(VideoEvent.COMPLETE, _doNext);
trace("video done, what's next?");
}
, 당신은 이런 식으로 작업을 수행 할 수 있습니다
// for clarification
var video:FLVPlayback = myVideoInstance;
video.source = "http://example.com/myvideo.flv";
video.autoPlay = true;
video.addEventListener(VideoEvent.COMPLETE, function(e:VideoEvent) {
// video has finished
});