# \[FMX04\]Need help on storing multiple \_x at runtime

**URL:** <https://forum.kirupa.com/t/fmx04-need-help-on-storing-multiple--x-at-runtime/175064>\
**Category:** flash\
**Created:** [January 11, 2006, 1:56pm UTC](https://forum.kirupa.com/t/fmx04-need-help-on-storing-multiple--x-at-runtime/175064 "2006-01-11T13:56:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zazi](https://avatars.discourse-cdn.com/v4/letter/z/858c86/32.png) [@zazi](https://forum.kirupa.com/u/zazi)\
**Post date:** [January 11, 2006, 1:56pm UTC](https://forum.kirupa.com/t/fmx04-need-help-on-storing-multiple--x-at-runtime/175064/1 "2006-01-11T13:56:36Z")

</div>

Hallo ,  
i am developing a photogallery with picts of different width.  
there’s nothing with it,but i am trying to make an element which is more of a design nature.  
So i have an invisible mc/say “bbb” which is duplicated each time a new photo is loaded  
and its \_x depends on the photos \_width and the distance between the photo and the end of the screen regulates how many times “bbb” is duplicated.So on every new photo i got /possibly/ diferent number of instances with diferent \_x.Still no poblem.But i want to put an  
bbb\_dups.onRollOver=func(){if (this.\_x=curr\_x){ tween(this.\_x+30)}else if (this.\_x=curr\_x+30){ tween(backto curr.\_x)} so i need somehow to store each instances curr.\_x after the duplication which i dont know how.  
i’ve tried with an array but it doesn’t seem to work for all the instances.
