Can actionscript do variable in variable?

I know in php etc its great with variables. You can use variables withinn variables to call another variable

e.g $somevar1, $somevar2

then $i = 1.

$$somevar$i (this will be treated as $somevar1)

Is it possible to do this in actionscript, because it saves one hell of alot of code.