# Dynamic referncing in AS3

**URL:** <https://forum.kirupa.com/t/dynamic-referncing-in-as3/315992>\
**Category:** flash\
**Created:** [November 9, 2010, 3:56pm UTC](https://forum.kirupa.com/t/dynamic-referncing-in-as3/315992 "2010-11-09T15:56:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![clockwork\_killa](https://avatars.discourse-cdn.com/v4/letter/c/74df32/32.png) [@clockwork\_killa](https://forum.kirupa.com/u/clockwork_killa)\
**Post date:** [November 9, 2010, 3:56pm UTC](https://forum.kirupa.com/t/dynamic-referncing-in-as3/315992/1 "2010-11-09T15:56:31Z")

</div>

I have 4 arrays named array1 to array4, is there any way to reference them dynamically?  
What I mean is if I have for example  
var currentValue:int = 3;  
and I want to be able to access a specific array depending on that value, is there an easy way to do that in AS3?  
In as2 you could do something along the lines of  
(“array” + currentValue);  
but that doesnt work in AS3  
Any suggestions?  
Thanks
