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 [...]

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!

Related Posts

First step into AS3.0 Actionscript 3.0 difference

Related Posts

Popular Posts


One Response

12.29.09

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 Your Response

* Name, Email, Comment are Required

Nuffnang Ad

Advertisement