+4  A: 

I could be wrong (I haven't done AS2 for a long while), but I think you can do this using array syntax:

 for( i = 0 ; i < 3 ; i++)
{
    this["myVar"+i] = i;
}

and then for variable access:

var foo = this["myVar0"] //etc
Reuben
+1  A: 

First answer is correct, but if you make the class dynamic (ie. new members can be created dynamically) ...

dynamic class ClassName { // etc. }

... then you can reference the variable in normal syntax:

var foo = this.myVar0;

You won't be able to access the variable at all without 'this' whether the class is dynamic or not.

wmid