1 Reply Latest reply on Sep 17, 2006 4:55 PM by SlowX

    Dynamic path evaluation

      I have a movie clip within a movie clip that I need to reference dynamically.

      Let's say there are 4 of them, mc1 which contains mcSub1, mc2 which conatins mcSub2, etc., and I have a counter "i" that goes from 1 to 4.

      If I was going just one level deep to set a variable to the x coordinate, this code works:
      theMCsX = this["mc" + i]._x;

      But if I want to target the enclosed mocie clip, this code doesn't work:
      theSUBsX = this["mc" + i + ".mcSub" + i]._x;

      No matter what I seem to place in the brackets, my result is "undefined".

      So what will work?