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
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[EMAIL PROTECTED]
0207 631 3278
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders