(One of these days I'm going to get this without having to beg for help...GAH!!)
Ok...got an array of movie clips. Each clip has it's own instance name. I need to loop through the array and hide them all to start. (Later I will show some based on other stuff...)
Now, the two traces for hideNote and 'got it' actually trigger. But the movies are never hidden. All I want is for everything in the array to be hidden. (This is complicated because there will be many arrays, and some reuse the same movie clips.)
"Credit belongs to the man who is actually in the arena - T.Roosevelt
Ok...got an array of movie clips. Each clip has it's own instance name. I need to loop through the array and hide them all to start. (Later I will show some based on other stuff...)
Code:
var easyArray:Array = new Array ("g2Note","a2Note", "b2Note", "c2Note", "d2Note", "e2Note", "f2Note")
trace (easyArray.length)
for (i = 0; i<easyArray.length; i++){
var hideNote = easyArray[i];
if (hideNote._visible != false){
hideNote._visible = false;
trace ("got it");
}
else trace ("hidden");
trace (hideNote)
}
Now, the two traces for hideNote and 'got it' actually trigger. But the movies are never hidden. All I want is for everything in the array to be hidden. (This is complicated because there will be many arrays, and some reuse the same movie clips.)
"Credit belongs to the man who is actually in the arena - T.Roosevelt