Skip to main content
Known Participant
January 17, 2013
Answered

How to make MovieClip not block touch events

  • January 17, 2013
  • 1 reply
  • 728 views

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

This topic has been closed for replies.
Correct answer moccamaximum

Assuming you named the MovieClip "myMovieClip"

write

myMovieClip.mouseChildren = false;

myMovieClip.mouseEnabled = false;

The ClickEvent should pass through the MovieClip unharmed.

1 reply

moccamaximumCorrect answer
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.

RxMadjackAuthor
Known Participant
January 17, 2013

Thank you very much!