In your code below, you are treating "rec" like an array, not a string.
Try this:

for (var i:Number = 1; i<=100; i++) {
    this["rec"+i].text = i;
}


Jason Merrill
Bank of America 
Learning & Organization Effectiveness - Technology Solutions 
 
 
 
 
 

>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:flashcoders-
>>[EMAIL PROTECTED] On Behalf Of Laurent CUCHET
>>Sent: Monday, September 18, 2006 9:01 AM
>>To: Flashcoders mailing list
>>Subject: [Flashcoders] >> for function
>>
>>Hi,
>>
>>There is 100 textfields ( rec1 to rec100 ) and I try to fill all of
them
>>with a for function :
>>
>>for (var i:Number = 1; i<=100; i++) {
>>    rec[i].text = i;
>>}
>>
>>It doent work
>>
>>Havee you got an idea why ?
>>
>>Thank you
>>_______________________________________________
>>[email protected]
>>To change your subscription options or search the archive:
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>>Brought to you by Fig Leaf Software
>>Premier Authorized Adobe Consulting and Training
>>http://www.figleaf.com
>>http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to