Flash AS3: loop video – FLVPlayback

import fl.video.VideoEvent;
myVideo.addEventListener(

VideoEvent.COMPLETE, completePlay);
function completePlay(e:VideoEvent):void {
myVideo.play();
}
import fl.video.VideoEvent;
fl_video.autoRewind = true; // fl_video being the name of the video component
fl_video.addEventListener(VideoEvent.AUTO_REWOUND, doLoop);

function doLoop(e:VideoEvent):void
{
e.target.play();

}

This post is tagged: , ,


Comments are closed.

Archives