[flexcoders] Re: Pointing to Dynamic variables

2006-07-25 Thread arnold_charming
Anyone?

--- In flexcoders@yahoogroups.com, 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?







 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/7EuRwD/fOaOAA/yQLSAA/nhFolB/TM
~- 

--
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/
 




Re: [flexcoders] Re: Pointing to Dynamic variables

2006-07-25 Thread JesterXL
Try:

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


- Original Message - 
From: arnold_charming [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 25, 2006 2:47 PM
Subject: [flexcoders] Re: Pointing to Dynamic variables


Anyone?

--- In flexcoders@yahoogroups.com, 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/