# Looping, then referencing dynamic clips from array

**URL:** <https://forum.kirupa.com/t/looping-then-referencing-dynamic-clips-from-array/174323>\
**Category:** Uncategorized\
**Created:** [January 4, 2006, 6:37pm UTC](https://forum.kirupa.com/t/looping-then-referencing-dynamic-clips-from-array/174323 "2006-01-04T18:37:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [January 4, 2006, 6:37pm UTC](https://forum.kirupa.com/t/looping-then-referencing-dynamic-clips-from-array/174323/1 "2006-01-04T18:37:08Z")

</div>

i’m looping thru xml nodes and using this to attach clips to an empty mc:

```auto
item = _root.mainHolder.links.linkHolder.attachMovie("linkClip", "linkClip" + i, i);

```

my question is how can I reference the previously attached clip so I can determine the \_y property of the current item(clip).

I’d like to do something like this.

item.\_y= previously attached clip.\_y-previously attached clip.height

that way my dyn clips can resize based on how much text…

get it?
