5 Replies Latest reply: Feb 6, 2012 7:06 AM by kglad RSS

    MouseEnabled not working

    sivacse24rep Community Member

      Hi,

       

      Consider the example:

       

      I have Mc1(topLayer),Mc2 in stage.

       

      Mc1 have 2 children(Movieclips) named-->hit_mc(topLayer),bgImage_mc

       

      Listeners:

      I want to write click listener only for Mc1.hit_mc.And then added a click listener for Mc2.

       

      Now

       

      Mc1.hit_mc --> click listener working fine

      Mc2---> click listener working fine.

       

      Problem:

      Mc1.bgImage_mc --> it is act like a blocker. I dont want it be a blocker.

      For this i write like this

       

      Mc1.bgImage_mc.mouseChildren=false;

      Mc1.bgImage_mc.mouseEnabled=false;

      Mc1.bgImage_mc.enabled=false;

       

      Still the Mc1.bgImage_mc act as blocker. How to solve this Issue?

       

      Mc1.mouseEnable=false is working fine.but i want Mc1.hit_mc to react with mouseClick....how to do solve this issue?