# Storing x and y coordinates in array

**URL:** <https://forum.kirupa.com/t/storing-x-and-y-coordinates-in-array/181703>\
**Category:** flash\
**Created:** [March 12, 2006, 5:13am UTC](https://forum.kirupa.com/t/storing-x-and-y-coordinates-in-array/181703 "2006-03-12T05:13:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rockstar](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@Rockstar](https://forum.kirupa.com/u/Rockstar)\
**Post date:** [March 12, 2006, 5:13am UTC](https://forum.kirupa.com/t/storing-x-and-y-coordinates-in-array/181703/1 "2006-03-12T05:13:29Z")

</div>

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
