1 Reply Latest reply on Aug 31, 2010 10:25 AM by Ned Murphy

    Multiple movie clips in variable


      Is it possible to have multiple movie clips inside one variable? I want to be able to just use var._totalframes instead of mc1._totalframes, mc2._totalframes, etc... Or is there another way I can avoid copying and pasting dozens of movie clips over and over? Thanks.

        • 1. Re: Multiple movie clips in variable
          Ned Murphy Adobe Community Professional & MVP

          You can use the bracket notation in a loop to process multiple similarly named objects such as you described...


          for(i=1; i<someNum; i++){

               something += this["mc"+ i]._totalframes // not clear on your intent



          I can't be sure I am answerng your question when you mention copying and pasting movieclips.

          1 person found this helpful