Thanks to everyone who replied on this, mostly with the same solution:

On Tue, July 8, 2008 1:07 pm, Andrew Murphy wrote:
> mainText.htmlText = "";
> for(var i:uint = 0; i < cueArray.length; ++i) {
>       mainText.htmlText += "<b>" + cueArray[i] + "</b>";
> }

Unfortunately, this doesn't fix the problem, which makes me think I have
an additional problem elsewhere (see below). Here's what I see when I play
past cue point 1:
Cue Point 1
But if I review it and play it again I get this:
Cue Point 1
Cue Point 1 and so on...
In other words, it's as if it's just adding the last cue point every time.
>:(

I suspect there's something hokey with the way I'm treating my array?
Here's the relevant code:

vidList.cuePoint = function(cues) {
        texthtml = ("<p>")+cues.info.name;
        if (cues.info.type == "event") {
                if (contains("texthtml", cueArray) == -1) {
                        len = cueArray.length;
                        cueArray[len] = texthtml;
                        var len2 = cueArray.length;
                        mainText.htmlText = "";
                        for (var i = 0; i<len2; i++) {
                                mainText.htmlText += 
"<b>"+cueArray[i]+"</b><br>";
                        }
                }
        }
};
caption_flvp.addEventListener("cuePoint", vidList);

If you're still reading and thinking it through, many, many thanks.

Paul

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to