# Dynamically naming arrays

**URL:** <https://forum.kirupa.com/t/dynamically-naming-arrays/310845>\
**Category:** flash\
**Created:** [June 21, 2010, 9:21am UTC](https://forum.kirupa.com/t/dynamically-naming-arrays/310845 "2010-06-21T09:21:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Skribble](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Skribble](https://forum.kirupa.com/u/Skribble)\
**Post date:** [June 21, 2010, 9:21am UTC](https://forum.kirupa.com/t/dynamically-naming-arrays/310845/1 "2010-06-21T09:21:52Z")

</div>

Hey guys, just a quick question.

I’m attaching a bunch of movieclips to the stage, and I’d like each movieclip to have its own array based on the movieclips name. I thought I’d do it the same way that I do it with Movieclips, utilizing the [and] brackets like below:

```auto
var ["movieclip"+i]:Array = new Array();

```

I’m getting an error thrown at me, telling me that the line requires an identifier. Is this possible? Or will I have to create the arrays before publishing the file?

Thanks
