Hi,
Back in 2009 I created seamless video loops using the FLVPlayback component and 'addEventListener' (as3)—and they worked great! looping round and round seamlessly—equally well in browsers as in flash. The videos were of varying lengths, small (all between 50—500K), and they looped perfectly.
Recently I've gone back to update things and noticed that my video loops are no longer seamlessly looping in any of the web browsers. Now there's a big pause interrupting the seamless flow.
??? why? Has something in the delivery (browsers/flashplayer) changed? All my video loops still run seamlessly when tested in Flash (CS5). I spent a good amount of time investigating various angles but could not find any solution.
Anyhow, here's the actionscript:
stop();
import fl.video.*;
toggleButton.addEventListener(MouseEvent.MOUSE_OVER, rolloverToggle);
toggleButton.addEventListener(MouseEvent.MOUSE_OUT, rolloutToggle);
toggleButton.addEventListener(MouseEvent.CLICK, toggleClick);
toggleButton.buttonState = "off";
function rolloverToggle(event:MouseEvent):void {
toggleButton.gotoAndStop(toggleButton.buttonState+" over");
}
function rolloutToggle(event:MouseEvent) {
toggleButton.gotoAndStop(toggleButton.buttonState);
}
function toggleClick(event:MouseEvent):void {
if (toggleButton.buttonState == "on") {
toggleButton.buttonState = "off";
vid_16_monty.pause();
}else {
toggleButton.buttonState = "on";
vid_16_monty.play();
vid_16_monty.addEventListener(VideoEvent.COMPLETE, rewind);
function rewind(event:VideoEvent) {
vid_16_monty.play();
}
}
toggleButton.gotoAndStop(toggleButton.buttonState+" over");
}
the video that goes with the above script can be viewed here: http://www.designfail.us cat should be in seamless motion... but it's not.
Also, not sure it would make much difference, but I'd be happy to attach an fla file—Adobe says it's a good idea but nowhere do they tell you how to attach an fla file... very peculiar, especially in these emphatic UI/UX times we live in.