Thanks to everyone for your help. This gets me closer to what I'm looking
for.

Unfortunately, there's a complicating factor: if the user scrubs across
the same point in the video again, they end up with duplicates/triplicates
of the list.

Since we actually want people to do this, I'm looking for a solution that
will replace the existing text with the full array on each cuePoint event.
I thought that my original code would do this - unless there's a better
way of achieving this?

Hope this makes sense and thanks again.

Paul


On Tue, July 8, 2008 12:09 pm, Piers Cowburn wrote:
> Hi Paul,
>
> Try:
>
>   var len2 = cueArray.length;
> for (var i = 0; i<len2; i++)
> {
>       mainText.htmlText += "<b>"+cueArray[i]+"</b><br>";
> }
>
> Piers
>
>
>
> On 8 Jul 2008, at 11:56, Paul Jinks wrote:
>
>> Apologies for last post: it got sent before I'd finished. That'll
>> teach me
>> to try to use the tab key using IMAP ;-). Here's the message again in
>> full:
>>
>> I'm new to coding and I'm having a problem getting a for loop to do
>> what I
>> want it to. I think this is pretty basic, but I'll let you be the
>> judge.
>>
>> I have a project to play through an flv which fires event cue
>> points at
>> certain points. At these points, text appears at the side of the video
>> window as summaries of what's being said. The summary text is the
>> name of
>> the cue point and is added to an array called cueArray after
>> checking that
>> it doesn't already exist. So far so good.
>>
>> The last step is to output the full array to the text field and
>> it's at
>> this point that I'm at hitting head against wall pitch. I just
>> can't get
>> it to output the whole array in sequence. What I'm using is:
>>        var len2 = cueArray.length;
>>         for (var i = 0; i<len2; i++)
>>         {
>>         mainText.htmlText = "<b>"+cueArray[i]+"</b>";
>>         }
>> But what this does is print only the last item in the array,
>> whereas I'm
>> expecting it to print the array in full.
>>
>> TIA
>>
>> Paul
>>
>>
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> [EMAIL PROTECTED]
> 0207 631 3278
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Check out my website: http://www.pauljinks.co.uk :o)


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

Reply via email to