# Display List Referencing

**URL:** <https://forum.kirupa.com/t/display-list-referencing/292604>\
**Category:** flash\
**Created:** [July 16, 2009, 8:31am UTC](https://forum.kirupa.com/t/display-list-referencing/292604 "2009-07-16T08:31:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricky55](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Ricky55](https://forum.kirupa.com/u/Ricky55)\
**Post date:** [July 16, 2009, 8:31am UTC](https://forum.kirupa.com/t/display-list-referencing/292604/1 "2009-07-16T08:31:43Z")

</div>

Hi

I had some help on this the other day which was very useful but my project has changed a bit since then.

I have a container movieclip called cont\_mc then inside that I have a series of pins which are called pin1\_mc then inside the pins I have a final movie clip the size of the pin head to act as the hit state.

You can see what I talking about here:

[http://www.qwerty-design.co.uk/bensons/forum.html](http://www.qwerty-design.co.uk/bensons/forum.html)

Before I had the pins in the container movie clip I was able to bump them to the top of the display list using this code in the on over function.

this.setChildIndex(event.target.parent, this.numChildren-1);

Now I have wrapped them in the container mc this code no longer works and I get an error, must be a child of the caller?

How can I change this?
