2 Replies Latest reply on Oct 4, 2012 9:26 AM by alaStickman

    Finding Movieclip inside a Movieclip

    A.kameshwaran Level 1

      Hi,

           I would like to know how to find the movieclip inside a movieclip. Because hit test will not work for more than one level.

       

      I will tell the scenario,

       

           I have movieclip one movieclip (a_mc)over the stage with

       

      x=0

      y=0

      w=500

      h=500

       

      I have drawn another movieclip(b_mc) over the stage with

       

      x=10

      y=10

      w=400

      h=400

       

      In this level i can find using the hittest like below,

       

      a_mc.hitTest(b_mc);

      . But if i have another movieclip,

       

      x=30

      y=30

      w=300

      h=300

       

      and if i give a_mc.hitTest(c_mc) it is returning false. How can i find it. Is there any way to find, other that using forloop for movieclip length with condition of x,y, w and h.

       

      All the movieclip will be created dynamically.

       

      Regards,

      Kameshwaran A.