# Find out which display object is hitting the other

**URL:** <https://forum.kirupa.com/t/find-out-which-display-object-is-hitting-the-other/291970>\
**Category:** flash\
**Created:** [July 8, 2009, 12:39pm UTC](https://forum.kirupa.com/t/find-out-which-display-object-is-hitting-the-other/291970 "2009-07-08T12:39:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daidai](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/daidai/32/3087_2.png) [@daidai](https://forum.kirupa.com/u/daidai)\
**Post date:** [July 8, 2009, 12:39pm UTC](https://forum.kirupa.com/t/find-out-which-display-object-is-hitting-the-other/291970/1 "2009-07-08T12:39:42Z")

</div>

I have a horizontal slider which slides images. When one of the images is in the middle of the stage I want to be able to show text related to that image. At the minute it shows all the text but thats not right.  
like: [http://14lox.com/casa/CoverFlow.html](http://14lox.com/casa/CoverFlow.html)

What Ive got is a way to find out if one image is hitting the middle point.  
[AS]trace("0 "+\_imageHolder.getChildByName(“0”).hitTestPoint(390, 120));  
trace("1 "+\_imageHolder.getChildByName(“1”).hitTestPoint(390, 120));  
trace("2 "+\_imageHolder.getChildByName(“2”).hitTestPoint(390, 120));  
trace("3 "+\_imageHolder.getChildByName(“3”).hitTestPoint(390, 120));  
trace("4 "+\_imageHolder.getChildByName(“4”).hitTestPoint(390, 120));  
[/AS]  
But what I want is the opposite, i want to find out which image is hitting the middle point.

Is there a way of doing this?
