var sTemp:String = "";

for (var i:int=0;i<myArrayCollection.length;i++) {

 sTemp += myArrayCollection [i] + "\n";

}

Alert.show(sTemp);

 

Tracy

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jmfillman
Sent: Wednesday, December 06, 2006 11:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Array to Alert

 

How would I iterate through the array if I don't know how many 
records are in the array?

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
, Valy Sivec <[EMAIL PROTECTED]> wrote:
>
> You can use the new line "\n" to build the Alert message.
> 
> Alert.show( array[0] + "\n" + array[1] ), something like that.
> 
> HTH,
> Valy
> 
> 
> ----- Original Message ----
> From: jmfillman <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> Sent: Tuesday, December 5, 2006 6:57:03 PM
> Subject: [flexcoders] Array to Alert
> 
> I have a label field in an ArrayCollection that I need to display 
on an 
> alert box. I need each label to be on it's own line in the alert 
box.
> 
> Say I have 3 records in the Array, with label values 
> of "*Name", "*Address", and "*Phone". I need to get those labels 
from 
> the ArrayCollection and have them show on the alert like this:
> 
> *Name
> *Address
> *Phone
> 
> 
> 
> 
> 
> 
> 
__________________________________________________________
______________
> Have a burning question? 
> Go to www.Answers.yahoo.com and get answers from real people who 
know.
>

 

Reply via email to