# Rollover event issue

**URL:** <https://forum.kirupa.com/t/rollover-event-issue/62303>\
**Category:** flash\
**Created:** [August 26, 2004, 6:08pm UTC](https://forum.kirupa.com/t/rollover-event-issue/62303 "2004-08-26T18:08:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dustin\_c1](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@dustin\_c1](https://forum.kirupa.com/u/dustin_c1)\
**Post date:** [August 26, 2004, 6:08pm UTC](https://forum.kirupa.com/t/rollover-event-issue/62303/1 "2004-08-26T18:08:28Z")

</div>

I have two movieclips. Let’s call them [color=darkorange]mc\_1[/color] and [color=darkorange]mc\_2[/color].

In the timeline, [color=darkorange]mc\_2[/color] has a higher depth value than [color=darkorange]mc\_1[/color], meaning that [color=darkorange]mc\_2[/color] covers part of [color=darkorange]mc\_1[/color].

[color=darkorange]mc\_1[/color] has [color=darkorange]onRollOver[/color] [color=black]defined[/color] for it. It animates when the mouse rolls over it. [color=darkorange]mc\_2[/color] has an alpha value of less than 100, making it semi transparent. My problem is when I roll the mouse cursor over [color=darkorange]mc\_2[/color], I trigger [color=darkorange]mc\_1.onRollOver[/color] and can see the animation through the semi-transparency of [color=darkorange]mc\_2[/color].

Is there a way to prevent [color=darkorange]mc\_1.onRollOver[/color] from receiving an event when there is a movieclip object that has a higher depth value blocking it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 10:20am UTC](https://forum.kirupa.com/t/rollover-event-issue/62303/2 "2004-08-27T10:20:10Z")

</div>

I tryed to replicate your problem… but… for me works just fine.  
Can you post a link, a swf to see how it’s acting?  
You could also try when rollover your mc\_2 to put a mc\_1.enabled=false; and then a mc\_1.enabled = true; when you rollOut of mc\_2

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 5:59pm UTC](https://forum.kirupa.com/t/rollover-event-issue/62303/3 "2004-08-27T17:59:17Z")

</div>

> [@virusescu](#):
>
> I tryed to replicate your problem… but… for me works just fine.  
> Can you post a link, a swf to see how it’s acting?  
> You could also try when rollover your mc\_2 to put a mc\_1.enabled=false; and then a mc\_1.enabled = true; when you rollOut of mc\_2

This gets even stranger. [color=darkorange]mc\_2[/color] has several graphic objects on the timeline. [color=darkorange]mc\_1.onRollOver[/color] doesn’t fire when the mouse cursor hovers over the PNG graphics in [color=darkorange]mc\_2[/color] but it fires when hovering over the graphic object created within.

I did fix the issue, but not without using interactivity between [color=darkorange]mc\_1[/color] and [color=darkorange]mc\_2[/color] that I really didn’t want to use.
