Copy link to clipboard
Copied
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
Assuming you named the MovieClip "myMovieClip"
write
myMovieClip.mouseChildren = false;
myMovieClip.mouseEnabled = false;
The ClickEvent should pass through the MovieClip unharmed.
Copy link to clipboard
Copied
Assuming you named the MovieClip "myMovieClip"
write
myMovieClip.mouseChildren = false;
myMovieClip.mouseEnabled = false;
The ClickEvent should pass through the MovieClip unharmed.
Copy link to clipboard
Copied
Thank you very much!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now