Flash AS3: loop video – FLVPlayback
import fl.video.VideoEvent;
myVideo.addEventListener(
function completePlay(e:VideoEvent):
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);
fl_video.autoRewind = true; // fl_video being the name of the video component
fl_video.addEventListener(
function doLoop(e:VideoEvent):void
{
e.target.play();
}
This post is tagged: actionscript, flash, video