6 Replies Latest reply on May 23, 2012 3:24 PM by RxMadjack

    For loop and accessing objects by instance name.


      Hey guys,


      What I am trying to do should be very simple, I want to make several movieclip objects not visible by using a for loop.


      Here is what I currently have...


      for (var i:Number=1; i<8; i++){

                high[i].visible = false;





      So I have 8 movieclip objects that have instance names of "high1", "high2", "high3" and so forth up to 8


      What would be the correct syntax for this line of code to make this work?


      high[i].visible = false;


      Thank you.