Getting Text value for an array, from an array
I have two arrays, one creates x amount of boxes for the user to input text into, and the other "prints" the data into text boxes.
My issue: When I create the second array it creates the boxes, and I need to grab the text value off the first array.
Im having trouble with finding the correct directory and using it with the loop
printAryblk[PBArr].text = MovieClip(parent).blockoff.blockinpts.textArray100["one" + i].text; // this is the broken code
I know my designations are off, and im not sure how to specify it correctly.
var printAryblk:Array = new Array();
for (var i:int =0; i<Printbloklin; ++i)
{
trace(PBArr);
printAryblk[PBArr] = new TextField();
printAryblk[PBArr].name = PBArr;
printAryblk[PBArr].y = 500;
printAryblk[PBArr].x = 160 + (i * 15 + MovieClip(parent).blockoff.blockinpts.textArray100["one" + i].width );
printAryblk[PBArr].width = 14;
printAryblk[PBArr].type = TextFieldType.INPUT;
printAryblk[PBArr].height = 30;
printAryblk[PBArr].autoSize = TextFieldAutoSize.LEFT;
printAryblk[PBArr].defaultTextFormat = PrintBlockF;
printAryblk[PBArr].text = MovieClip(parent).blockoff.blockinpts.textArray100["one" + i].text; // this is the broken code
addChild(printAryblk[PBArr]);
}
var textArray100:Array = new Array();
for (var i:int =0; i<maxBlokLinne; ++i)
{
trace(blockArr100);
textArray100[blockArr100] = new TextField();
textArray100[blockArr100].name = blockArr100;
textArray100[blockArr100].y = 0;
textArray100[blockArr100].x = 0;
textArray100[blockArr100].width = 8.5;
textArray100[blockArr100].type = TextFieldType.INPUT;
textArray100[blockArr100].height = 30;
textArray100[blockArr100].autoSize = TextFieldAutoSize.LEFT;
textArray100[blockArr100].background = true;
textArray100[blockArr100].backgroundColor = 0x86A798;
textArray100[blockArr100].border = true;
textArray100[blockArr100].defaultTextFormat = myFormat100;
addChild(textArray100[blockArr100]);
}
