# MC Listeners on top of each other trouble

**URL:** <https://forum.kirupa.com/t/mc-listeners-on-top-of-each-other-trouble/310253>\
**Category:** Uncategorized\
**Created:** [June 5, 2010, 9:54pm UTC](https://forum.kirupa.com/t/mc-listeners-on-top-of-each-other-trouble/310253 "2010-06-05T21:54:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbucker](https://avatars.discourse-cdn.com/v4/letter/h/278dde/32.png) [@humbucker](https://forum.kirupa.com/u/humbucker)\
**Post date:** [June 5, 2010, 9:54pm UTC](https://forum.kirupa.com/t/mc-listeners-on-top-of-each-other-trouble/310253/1 "2010-06-05T21:54:02Z")

</div>

Hi!

I’m dynamically creating MC with help of an Array to store instance, in order to build something like a stack of photo.  
In my loop, I’m adding listerners so that I’ll be able to click on each photo

```auto

for(var ix:Number=0 ; ix<my_total; ix++)   
{
mySlidesArray[ix].addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);
mySlidesArray[ix].addEventListener(MouseEvent.DOUBLE_CLICK, nextSlideOut);
                mySlidesArray[ix].getChildByName("reactorZone"+ix).addEventListener(MouseEvent.MOUSE_OVER, slideAlign);
                mySlidesArray[ix].getChildByName("reactorZone"+ix).addEventListener(MouseEvent.MOUSE_DOWN,beginDrag);    
            }

```

My problem is caused by the Mouse\_Down, even if only photo is visible on top of all the other one, clicking on it seems to make the listeners of the photos below reacting…

Is it possible ? do listeners can’t be on top of each other and only detecting if nothing is on top of them?

Thank you
