New to AS3: need help with array manipulation

In other languages, an element in a predefined array may be changed by syntax like myArray[2] = [data], changing the value of the second element to [data]. When I do this in AS3, the data is written to element two, but element 1 data seems to be lost, returning “[object] [Object]”.

I want the elements in a sharedObjects array to remain in fixed positions and change them randomly. Is push and splice the only way to manipulate the array? Is there a simpler way like myArray[2] = [data] to do it?

Thanks for any help!