# Plz help complete arrayIdiot with array-problem

**URL:** <https://forum.kirupa.com/t/plz-help-complete-arrayidiot-with-array-problem/136393>\
**Category:** Uncategorized\
**Created:** [February 4, 2005, 11:24am UTC](https://forum.kirupa.com/t/plz-help-complete-arrayidiot-with-array-problem/136393 "2005-02-04T11:24:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kathari](https://avatars.discourse-cdn.com/v4/letter/k/a183cd/32.png) [@kathari](https://forum.kirupa.com/u/kathari)\
**Post date:** [February 4, 2005, 11:24am UTC](https://forum.kirupa.com/t/plz-help-complete-arrayidiot-with-array-problem/136393/1 "2005-02-04T11:24:00Z")

</div>

I never seem to be able to use arrays correctly and so decided to try to do the most simple thing with my actionscript cookbook and after having checked tutorials both here and elsewhere. To no help apparently…

I did this:

```auto
myArray = ["b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "b10", "b11", "b12", "b13", "b14", "b15", "b16", "b17", "b18", "b19", "b20", "b21"];
for (var i = 0; i < myArray.length; i++) {
	myArray*._visible = true;
	trace(myArray);
}

```

On the mc instances I have:

```auto
onClipEvent (load) {
	this._visible = false;
}

```

the tracing shows that it is looping through the array but there is no outcome, nothing becomes visible.  
I have checked the mc:s by changing their \_visible state by referencing them by their instance names without any problem. What am I doing wrong? and how would I go about to make them visible one after the other, sort of like:

```auto
this.onEnterFrame = function() {
	if (myArray[0]._visible = true) {
		myArray[next]._visible = true;
		if (myArray*._visible = true) {
			delete this.onEnterFrame;
		}
	}
};

```

☹
