I'm creating a load of form fields on-the-fly, and I'm getting errors in the Eclipse problems panel telling me that the properties of these fields that I am refering to are undefined. How can I 'trick' Eclipse into thinking it's fine (as it would be a runtime)??
var label1:Label = new Label();
label1.text = "Payment:";
thisBox.addChild(label1);
var input1:TextInput = new TextInput();
input1.id = "payment;
thisBox.addChild(input1);
panel3.addChild(thisBox);
}
private function addValues():void
{
theSum = 150+Number(payment.text);
}
Currently generates an error Access of undefined property payment.