# onRollOver event of parent MC preventing onRollOver of child

**URL:** <https://forum.kirupa.com/t/onrollover-event-of-parent-mc-preventing-onrollover-of-child/241879>\
**Category:** flash\
**Created:** [October 19, 2007, 2:53am UTC](https://forum.kirupa.com/t/onrollover-event-of-parent-mc-preventing-onrollover-of-child/241879 "2007-10-19T02:53:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snailface](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@snailface](https://forum.kirupa.com/u/snailface)\
**Post date:** [October 19, 2007, 2:53am UTC](https://forum.kirupa.com/t/onrollover-event-of-parent-mc-preventing-onrollover-of-child/241879/1 "2007-10-19T02:53:39Z")

</div>

I have a movieClip, which in turn has a nested movieClip. I need each of these to have thier own onRollOver events, the parent movieClip is OK, but the event never fires for the nested movieClip. Can anyone think of a workaround?

My code goes something like this:

```auto

attachMovie("mcOne", "mcOne", 100);
mcOne._x = 20;
mcOne._y = 20;
mcOne.onRollOver = function(){
    trace("hi");
};
mcOne.attachMovie("mcTwo", "mcTwo", 100);
mcOne.mcTwo.onRollOver = function(){
    trace("bye");
};

```

“hi” is output when mcOne is rolled over, as it should, but nothing is output when mcTwo is moused over.
