Well, that's sorta why I asked the question. If you are using Flash Video Encoder 8 Then I was wondering if you have Flash8. The way you are talking almost looks like you are using Flash MX components.
In the Encoder in advanced video options you can set cuepoints. Then in Flash 8 you use the FLVPlayback component instead of the outdated MediaDisplay.
Regardless you still have to set listeners to trigger events. For example take this animation
http://www.alaron-nuclear.com/devsite/g ... trol4.html
When I encoded that in Flash Video Encoder 8 I set beginning and ending cuepoints. All I wanted to do for my event was loop the video. So I did that with actionscript.
The code for the listener that loops it is this (ignore the trace - that was for testing obviously)
stop();
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);
//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);
- stop();
- 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);
-
- //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);
What it looks like to me is you are trying to use techniques for flash MX. Unfortunately I never used flash MX to a great extent and not at all for streaming FLV. That's why I asked what version you are using. I'm unfamiliar with mediaDisplay component but very comfortable with Flash8 FLVPlayback component.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.