# Dynamic Array Names?

**URL:** <https://forum.kirupa.com/t/dynamic-array-names/290392>\
**Category:** flash\
**Created:** [June 13, 2009, 11:54pm UTC](https://forum.kirupa.com/t/dynamic-array-names/290392 "2009-06-13T23:54:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pcehnaids](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@pcehnaids](https://forum.kirupa.com/u/pcehnaids)\
**Post date:** [June 13, 2009, 11:54pm UTC](https://forum.kirupa.com/t/dynamic-array-names/290392/1 "2009-06-13T23:54:50Z")

</div>

I am a bit new to actionscript so bear with me. I have a function that is called from a timer event. Every time the event is called I need to create a new Array with a unique name:

```auto
var dropNumber:int = dropHead.length - 1;
var ["dropTail" + dropNumber???]:Array = new Array();

```

I am not sure how to dynamically change the name of an array with as3, Please help.

Also, just a bonus question, is it more efficient to have a single array broken into partitioned indexes or have several arrays of data?

Thanks
