# Dynamically created thumb gallery - properties of previous thumb?

**URL:** <https://forum.kirupa.com/t/dynamically-created-thumb-gallery-properties-of-previous-thumb/225541>\
**Category:** flash\
**Created:** [May 13, 2007, 2:45pm UTC](https://forum.kirupa.com/t/dynamically-created-thumb-gallery-properties-of-previous-thumb/225541 "2007-05-13T14:45:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![un1dentified](https://avatars.discourse-cdn.com/v4/letter/u/8e7dd6/32.png) [@un1dentified](https://forum.kirupa.com/u/un1dentified)\
**Post date:** [May 13, 2007, 2:45pm UTC](https://forum.kirupa.com/t/dynamically-created-thumb-gallery-properties-of-previous-thumb/225541/1 "2007-05-13T14:45:56Z")

</div>

Hello, everyone!

I have this dynamically created thumb gallery from a XML:

function loadXML(loaded) {  
if (loaded) {  
xmlRoot = this.firstChild;  
total = xmlRoot.childNodes.length;  
imageBig = [];  
imageThumb = [];  
imageTitle = [];  
imageDesc = [];  
for (i=0; i\<total; i++) {  
imageBig\* = xmlRoot.childNodes\*.childNodes[0].firstChild.nodeValue;  
imageThumb\* = xmlRoot.childNodes\*.childNodes[1].firstChild.nodeValue;  
imageThumb\_fn(i);  
}  
}  
else {  
content = “file not loaded!”;  
}  
}

function imageThumb\_fn(k) {  
_parent.thumbs.createEmptyMovieClip("thumb_"+k, \_parent.thumbs.getNextHighestDepth());  
tlistener = new Object();  
tlistener.onLoadInit = function(target\_mc) {  
target\_mc.\_x = (target\_mc.\_width + 18) \* k;  
target\_mc.\_y = 0;  
}  
}

Is there any way to get \_x and \_y properties of a previously created thumb (e.g. k-1) and use them in maths of a position of current thumb??
