Hi all,
I have a bit of a sticky issue. I am using the FLV playback component in Flash 8, and have managed to get it to play an external FLV as well as control the playback. ie play, pause, skip forward to a cue point.
So as you can see, I have the navigaion side of cue points figured.
What I’m having trouble with, is the ability to display captions below my FLV.
In my FLV, I have a series of talking heads, and when each comes up, I want to display their name and title, like you would see on TV.
In my scene I have an FLV playback component with the instance name of ‘my_flvPb’ and a text area component with the instance name of 'my_ta.
Here is the code I have been using:
var my_flvPb:mx.video.FLVPlayback;
var my_ta:mx.controls.TextArea;
my_flvPb.contentPath = "leadership.flv";
my_flvPb.addASCuePoint(2, "name1");
my_flvPb.addASCuePoint(4, "name2");
var listenerObject:Object = new Object();
listenerObject.cuePoint = function(eventObject:Object):Void {
my_ta.text = "Dr. Phil Townsley";
};
my_flvPb.addEventListener("cuePoint", listenerObject);
This code allows me to display the name “Dr. Phil Townsley”, but it does so for both cue points, at 2 and 4 seconds, and for anymore cue points I add. I can’t for the life of me figure out how to have a different piece of text display, for each different cue point.
If anyone could lend a hand, that would be swell.
Enforcer73