# Write to an array

**URL:** <https://forum.kirupa.com/t/write-to-an-array/229324>\
**Category:** Uncategorized\
**Created:** [June 15, 2007, 9:59pm UTC](https://forum.kirupa.com/t/write-to-an-array/229324 "2007-06-15T21:59:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigbstanley](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@bigbstanley](https://forum.kirupa.com/u/bigbstanley)\
**Post date:** [June 15, 2007, 9:59pm UTC](https://forum.kirupa.com/t/write-to-an-array/229324/1 "2007-06-15T21:59:56Z")

</div>

How do I have variables write to an array? I have three variables coming into flash called:

spot1  
spot2  
spot3

and I want to have an array that holds those values. something like:

```auto

initial = [spot1, spot2, spot3]

```

I’ve been reading the tutorials and it looks like everything has to be in quotes, but that won’t work. Any ideas?

Thanx in advance.
