Just an update, I did finally after a lot of searching and reading, solved the cuePoint thing. This code finally worked just fine.
import mx.video.*;
var listenerObject1:Object = new Object();
listenerObject1.cuePoint = function(eventObject:Object):Void {
var cuePtName = eventObject.info.name;
if (cuePtName == "endLoop") {
my_FLVPlybk.seekToNavCuePoint(0.0);
//below just verifies cuePoints
trace("Elapsed time in seconds: " + my_FLVPlybk.playheadTime);
trace("Cue point name is: " + eventObject.info.name);
trace("Cue point type is: " + eventObject.info.type);
}
};
my_FLVPlybk.addEventListener("cuePoint", listenerObject1);
//added to trace state changes
var listenerObject2:Object = new Object();
listenerObject2.stateChange = function(eventObject:Object):Void {
trace(my_FLVPlybk.state);
};
my_FLVPlybk.addEventListener("stateChange", listenerObject2);
However, it didn't do what I was hoping, and that is elliminate the slight hesitation between the end of the playback and the restart to make a seamless loop. I figured by using the cuePoint listener I could tell the player exactly when the video is over and where it begins, but the playback seems insistant upon that little hesitation (even with the buffer set to zero). In fact it doesn't seem to matter what I set the buffer at. I'd almost assume this is just something about Flash that I'd have to live with, except I've seen seamless loops with FLVPlayback, but nobody really gives a good explanation of how to do it.
Here's an example of one that is seamless
http://theflashblog.com/?p=86
However, I'm discouraged by this quote in the replies:
Administrator Says:
1. November 17th, 2005 at 1:20 pm If you want to get these video clips to loop seamlessly in Flash you need to embed them into your SWF. Keeping them as external FLV files will not allow them to loop correctly.
I have to leave mine external. It's almost 8MB and if I embed it, it makes the swf file huge and unmanageable for page loading. So am I stuck? Am I going to have to live with this "glitch" on all the animation loops I make, or is there a way around this?