Skip to main content
Known Participant
October 11, 2011
Answered

Desable Touch :: mouseEnabled

  • October 11, 2011
  • 3 replies
  • 874 views

Hi,

I'm finding a way to touch (click) a object under other object. If i'm trying that with MouseEvent, I just need to write mouseEnabled = false or changes the hitArea, but with touchEvent i'ts doesn't work.

So, How can I ignore the touch event in a Sprite or MovieClip.

Thank all,

Mike

This topic has been closed for replies.
Correct answer

You probably have a oddly shaped hit area. Place a box over the top of the object that you are clicking through and make it 100% transparent or alpha = 0 then you will not be able to hit around the ojects in the gaps.

3 replies

Known Participant
October 12, 2011

Ok, I will try the Mark.Raykhenberg solution...

neh@adobe, the problem is that I have a object with a touchEvent, but I can't touch it because I have a other object behind it. So I need to be able to touch through the object sprite behind my other object. I know how to do that with mouseEvent, I just need to remove the mouse (mouseEnabled = false) on my object, but with touch, you can't call mc.touchEnabled = false...

October 12, 2011

Hi Mike,

I'm sorry, but I don't understand the usecase here. If you don't handle those touch events which are dispatched on touching the area, then, doesn't the touch event get ignored by itself?

-Neha

Correct answer
October 11, 2011

You probably have a oddly shaped hit area. Place a box over the top of the object that you are clicking through and make it 100% transparent or alpha = 0 then you will not be able to hit around the ojects in the gaps.