I'm just starting to learn flex and AS3
I'm trying to get information into a datagrid that originates from a mathmatical formula. For example if I have 100 and I subtract 5 from it and continue to do so until it reaches 0 so my grid would be something like:
100 | -5
95 | -5
90 | -5
...
...
5 | -5
0
I'm guessing that it needs to do something like this but can't find any examples of how to impliment something like this:
var i:Number = 100;
do {
add row to datagrid
i-5;
} while (i < 0);
Thanks Dave