Overlapping Movieclips in AS3

Back in AS2, when a MovieClip(MC) is underneath another one, as long as the MC that is on top doesn’t have any button actions (eg. onRollOver, onRelease etc), assigning button actions to the MC below will work.

Not anymore in AS3.

A quick fix is to give the following properties to the MC on top in AS3:

mc.mouseEnabled = false;
mc.mouseChildren = false;

Hope this will help someone!

One Response to “Overlapping Movieclips in AS3”

  1. Nick M.

    Thank you very much!
    That really helped me out with a project! Overlapping with objects is frequent to many projects.

    Keep doing a good work!

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>