29 December 2009 ~ 1 Comment

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!

  • Share/Bookmark

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: ,

One Response to “Overlapping Movieclips in AS3”

  1. Nick M. 5 January 2010 at 11:10 pm Permalink

    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

UA-2806383-1