# Movieclip associated with array index

**URL:** <https://forum.kirupa.com/t/movieclip-associated-with-array-index/99268>\
**Category:** Uncategorized\
**Created:** [January 16, 2004, 5:09pm UTC](https://forum.kirupa.com/t/movieclip-associated-with-array-index/99268 "2004-01-16T17:09:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![binkyboo](https://avatars.discourse-cdn.com/v4/letter/b/a183cd/32.png) [@binkyboo](https://forum.kirupa.com/u/binkyboo)\
**Post date:** [January 16, 2004, 5:09pm UTC](https://forum.kirupa.com/t/movieclip-associated-with-array-index/99268/1 "2004-01-16T17:09:24Z")

</div>

Alrighty here is my code:

```auto
function setButtons() {
	trace (_root["questionArray"+questionNum][0]);
	for (i=0; i<=_root["questionArray"+questionNum].length; i++) {
		trace (_root["questionArray"+questionNum]*);
		_root["questionArray"+questionNum]*.gotoAndStop(2);
	}
}
setButtons();

```

so when I trace (\_root[“questionArray”+questionNum][0]); it comes out as radio1 however the second trace (\_root[“questionArray”+questionNum]\*); is undefined. Why?
