I enter a set of 4 values in one text box and i display it in a splitted way in 4 other small text boxes using this code:
array.push(Number(t1.text));
array.push(Number(t2.text));
array.push(Number(t3.text));
array.push(Number(t4.text));
b2.addEventListener(MouseEvent.CLICK, act2);
//ACTION OF THE THE FIRST BUTTON CLICK
function act1(event:MouseEvent):Array
{
var input:String = tt.text;
array = input.split(" ");
t1.text=array[0];
t2.text=array[1];
t3.text=array[2];
t4.text=array[3];
}
But now I need to know how to do the same thing for any dynamic value that is entered.
Say I have a text box tt1 and a button b1. When I enter any value (say 6) this number of text boxes are created (6 new text boxes with names t0,t1....t5)
I have another text box tt2 and a button b2. When i enter a set of values in it (say 10,66,33,45,2,4) I need these values to get displayed in those text boxes t0,t1,t2..
Is this possible?