Try:

this[ "label" + i ].text = xmlOut.zalozbe.zalozba[i];


----- Original Message ----- 
From: "arnold_charming" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, July 25, 2006 2:47 PM
Subject: [flexcoders] Re: Pointing to Dynamic variables


Anyone?

--- In [email protected], "arnold_charming"
<[EMAIL PROTECTED]> wrote:
>
> Hi!
> 
> I have 3 labels with three different IDs:
> <mx:Label id="label1">
> <mx:Label id="label2">
> <mx:Label id="label3">
> 
> Now I want to use a for...loop statement to dynamicly get access to
> these labels and change their .text property. Something like this:
> 
> for(var i:int = 0; i < xmlOut.zalozbe.children().length(); i++) 
> {
>     txtZalozba[i].text = xmlOut.zalozbe.zalozba[i];
> }
> 
> How can this be done?
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to