# Arrays: is this possible?

**URL:** <https://forum.kirupa.com/t/arrays-is-this-possible/269286>\
**Category:** flash\
**Created:** [August 25, 2008, 6:36pm UTC](https://forum.kirupa.com/t/arrays-is-this-possible/269286 "2008-08-25T18:36:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevisazombie](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kevisazombie/32/3903_2.png) [@kevisazombie](https://forum.kirupa.com/u/kevisazombie)\
**Post date:** [August 25, 2008, 6:36pm UTC](https://forum.kirupa.com/t/arrays-is-this-possible/269286/1 "2008-08-25T18:36:54Z")

</div>

Hi all,

This might be a noob question. I want to change the value of a variable listed in an array using the array. for example:

```auto

var theVariable:Number = 15;

var theArray:Array = [theVariable];

```

now if I try this

```auto

theArray[0] = 20;

```

I just get an array with 1 value of 20 in it and it no longer references theVariable what i want to do is change the value of theVariable with out removing it from the array but referencing it from the array in a loop or something. Is that even possible? Thanks?
