Skip to main content
Known Participant
January 17, 2013
解決済み

How to make MovieClip not block touch events

  • January 17, 2013
  • 返信数 1.
  • 730 ビュー

Hey guys,

I am trying to do something that should be simple.  I have a touch listener on a button, however this button has a MovieClip that sits on top of it, so my button below it will not receive the click event from the mouse.  How can I keep the MovieClip above the button but allow the mouse click event to pass to the button?

Thanks

このトピックへの返信は締め切られました。
解決に役立った回答 moccamaximum

Assuming you named the MovieClip "myMovieClip"

write

myMovieClip.mouseChildren = false;

myMovieClip.mouseEnabled = false;

The ClickEvent should pass through the MovieClip unharmed.

返信数 1

moccamaximum解決!
Inspiring
January 17, 2013

Assuming you named the MovieClip "myMovieClip"

write

myMovieClip.mouseChildren = false;

myMovieClip.mouseEnabled = false;

The ClickEvent should pass through the MovieClip unharmed.

RxMadjack作成者
Known Participant
January 17, 2013

Thank you very much!