I think the following will do what what your want
var R:Object = {};
for (var gridRows:int=15; gridRows < 2895;gridRows += 20){
var R[gridRows] = (gridRows / 5);
}
you can't dynamically generate var names, but you can dynamically
generate object keys.
since gridRows is a number it can be the inde
--- In [email protected], "jmfillman" <[EMAIL PROTECTED]> wrote:
>
> I am probably overlooking something simple, but I'm trying to
> dynamically name variables. See the code below, which is an example
> that illustrates what I need to do.
>
>
> for (var gridRows:int=15; gridRows < 2895;gridRows){
> var "R"+gridRows:Number = (gridRows / 5);
> gridRows = (gridRows + 20);
> }
>