I have this form and I need to validate that each TextInput box has data in it and I am having issues with a certain part. There is a section where TextInput boxes are dynamically added into a ScrollPane. There can be anywhere from 1 box to 9999 TextInput boxes. I can validate that these TextInput boxes have no information in them separately however I cannot seem to validate that all the boxes as a whole do not have information in them. For example if there are 3 TextInput boxes and only 2 have info in them I need to know that.

I am trying to do two things here, if the box is empty I need to change the TextInput box background to yellow (this I can do no problem) and if all the boxes have info in them then I will let the user progress to a different part of the form.

This is the code that I am using so far. Any help or ideas would be greatly appreciated.

Actionscript Code:
if (spProdGroup.getValue() == 1 && quesGroup.getValue() == 1) {
    for (r=1; r<Number(qIDAmount.text)+1; r++) {
        if (qIDAmount.text != "") {
            qIDAmount.setStyle("backgroundColor","0xFFFF33");
        }
        if (sPane.spContentHolder["qId"+r].qestionID.text == "") {
            //This part works just fine
            sPane.spContentHolder["qId"+r].qestionID.setStyle("backgroundColor","0xFFFF33");
            val._visible = true;
        }
        if (qIDAmount.text != "" && sPane.spContentHolder["qId"+r].qestionID.text != "") {
            //This part does not
            trace("All boxes have data");
        }
    }
}