Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to make MovieClip not block touch events

New Here ,
Jan 17, 2013 Jan 17, 2013

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

TOPICS
ActionScript
704
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guru , Jan 17, 2013 Jan 17, 2013

Assuming you named the MovieClip "myMovieClip"

write

myMovieClip.mouseChildren = false;

myMovieClip.mouseEnabled = false;

The ClickEvent should pass through the MovieClip unharmed.

Translate
Guru ,
Jan 17, 2013 Jan 17, 2013

Assuming you named the MovieClip "myMovieClip"

write

myMovieClip.mouseChildren = false;

myMovieClip.mouseEnabled = false;

The ClickEvent should pass through the MovieClip unharmed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 17, 2013 Jan 17, 2013
LATEST

Thank you very much!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines