3 Replies Latest reply on May 14, 2007 7:56 AM by Rothrock

    How to get a list of all the child movieclips of a movieclip

    martinezpt
      Hi!

      I was wondering how I could get a list of all the movieclips inside a given movieclip.

      For example, suppose I have two instances of a ball movieclip: ball1 and ball2. These movieclips are inside another one named balls.

      Is there any method you could call on the movieclip balls that returns a reference to an array or object that with all the movieclips inside it (in this case ball1 and ball2).

      I know I can use balls['ball1'] to reference one of the movieclips, but balls.length or balls[0] does not work.