PDA

View Full Version : FLVPlayback Component & Cue points


WhutEvur
04-11-2006, 07:52 PM
I looked at many posts and seen different ways to do this. However I can not find one that can clearly explain how I can make the cue points trigger embed slides or even go to a labeled frame in the time line.

This script sees the cue point because it dispalys them in the output window.


var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
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", listenerObject);


I'm making a slide show and I just want the slides to change when the cue point comes up. Any ideas, or is there a GOOD tutorial on how to do this?

marbo77
04-13-2006, 12:39 PM
sorry to be a pain, you probably thought you had a solution with my reply but i'm also looking for this exact solution. I can't believe there isn't a really simple way of doing this.

I'm looking for when the video stops to goto a frame in the timeline, sounds simple but nobody can help!!

WhutEvur
04-13-2006, 07:18 PM
sorry to be a pain, you probably thought you had a solution with my reply but i'm also looking for this exact solution. I can't believe there isn't a really simple way of doing this.

I'm looking for when the video stops to goto a frame in the timeline, sounds simple but nobody can help!!


No pain at all from the way I understand it you can do it like this. Set a cue point at the end of your FLV file and put this script in frame 1 of the time line **This script looks for a FLV with the instance name of my_FLVPlybk**


stop();
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
trace("Elapsed time in seconds: " + my_FLVPlybk.playheadTime);
trace("Cue point name is: " + eventObject.info.name);
trace("Cue point type is: " + eventObject.info.type);
gotoAndStop("frameLabel name goes here");
}
my_FLVPlybk.addEventListener("cuePoint", listenerObject);



There might be better ways but this way should do it for you. If anyone has an easier way please share.

good luck