Storing x and y coordinates in array

Hi

I have a few items on the stage with different types of item.
cube_0 ++
square_0 ++
triangle_0 ++
and so forth

I have this scroll bar to rotate each item. When a user click outside of it, it will close down(removeMovieClip)
I want to store the last x and y coordinates of [let’s say] cube_0 's scroll bar… so that when a user re-opens the scrollbar, it will be at the last coordinate when they close it.

I’m thinking to do an array, but I don’t know how to do it.
Any help would be greatly appreciated.

v