# hitArea problem, my hair falling down

**URL:** <https://forum.kirupa.com/t/hitarea-problem-my-hair-falling-down/295134>\
**Category:** Uncategorized\
**Created:** [August 25, 2009, 7:32pm UTC](https://forum.kirupa.com/t/hitarea-problem-my-hair-falling-down/295134 "2009-08-25T19:32:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iface](https://avatars.discourse-cdn.com/v4/letter/i/7993a0/32.png) [@iface](https://forum.kirupa.com/u/iface)\
**Post date:** [August 25, 2009, 7:32pm UTC](https://forum.kirupa.com/t/hitarea-problem-my-hair-falling-down/295134/1 "2009-08-25T19:32:46Z")

</div>

Hi all!

I have a very odd problem here (a bug?)

I have objects that the user can click&drag. They’re PNGs, mainly rectangular, no problem till here.

But I then had to put an L-shaped object (a PNG with a lot of transparency), so i’ve made a movieclip with an shape with the same L shape than the png, and use it as its hitArea:

shape.visible= false;  
shape.mouseEnabled= false;  
obj.addChild(shape);  
obj.hitArea= shape;

This works PERFECT, the mouse events respond as expected, and I can click on objects that are below/above the transparent area of the png/object.

All objects are inside a Sprite called playgroundLayer1. The issue comes when I take the L-shaped object and put it on another Sprite (playgroundLayer2), that is above the playgroundLayer1.

I this case, I can click&drag on the L, but no object below the transparent area of the L receives mouse events.

What’s the problem? I need this object in playgroundLayer2…

Thank you in advance! 🙂
