# Can actionscript do variable in variable?

**URL:** <https://forum.kirupa.com/t/can-actionscript-do-variable-in-variable/121031>\
**Category:** Uncategorized\
**Created:** [August 30, 2004, 5:50am UTC](https://forum.kirupa.com/t/can-actionscript-do-variable-in-variable/121031 "2004-08-30T05:50:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hiro](https://avatars.discourse-cdn.com/v4/letter/h/b5ac83/32.png) [@Hiro](https://forum.kirupa.com/u/Hiro)\
**Post date:** [August 30, 2004, 5:50am UTC](https://forum.kirupa.com/t/can-actionscript-do-variable-in-variable/121031/1 "2004-08-30T05:50:02Z")

</div>

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.
