rec[i] means 'rec' array index 'i'.
try this:
_root["rec"+i].text = i;
Laurent CUCHET wrote:
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
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: [EMAI
2 matches
Mail list logo