Arrays: is this possible?

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:


var theVariable:Number = 15;

var theArray:Array = [theVariable];


now if I try this



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?