Associative Arrays

i’m trying to use associative arrays to store my variables but am
looking for a solution to change the value of array1* to array2*.
since it’s an associative array, the only way i know how to loop
through these kinds of arrays is by the following:

for(var i in array1) {
trace(array1*;
}

what i would do when using indexed arrays to change the value
of array1* to array2* would be something like this:

for(i=0; i<array1.length; i++) {
array1* = array2*;
}

however, i can’t see any way you can do this with associative arrays
because they do not have a numbered index such that in a loop you could
say array1* = array2* .

so i’m looking for a way to do this with associative arrays.

thx in advance