alperu
10-29-2009, 01:00 PM
hi everyone;
i make a form which has 20 textinput component and a "clear" button.
if i gave all of the textinputs instanceName like "x1,x2,x3..." how can i clean the text values of components?
i don't want to write
x1.text="";
x2.text="";....its not usefull
code could be like that
for (var i:Number = 1; i <= 20; i++) {
NameofComp="a"+i;
NameofComp.text="";}
i make a form which has 20 textinput component and a "clear" button.
if i gave all of the textinputs instanceName like "x1,x2,x3..." how can i clean the text values of components?
i don't want to write
x1.text="";
x2.text="";....its not usefull
code could be like that
for (var i:Number = 1; i <= 20; i++) {
NameofComp="a"+i;
NameofComp.text="";}