# Movieclip names in an Array and trace id?

**URL:** <https://forum.kirupa.com/t/movieclip-names-in-an-array-and-trace-id/164732>\
**Category:** Uncategorized\
**Created:** [October 4, 2005, 12:51pm UTC](https://forum.kirupa.com/t/movieclip-names-in-an-array-and-trace-id/164732 "2005-10-04T12:51:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)\
**Post date:** [October 4, 2005, 12:51pm UTC](https://forum.kirupa.com/t/movieclip-names-in-an-array-and-trace-id/164732/1 "2005-10-04T12:51:43Z")

</div>

why can’t I trace ID the same as var i???

part of my code if you paste it in flash you can see what I mean

trace var i goes well  
tracing subNav.id doesn’t work???

```auto

navArray = ["who", "are", "what", "how", "going"];
numNavElements = navArray.length;
for (var i=0; i<numNavElements; i++) {
	var subNav = navArray*;
	subNav.id = i;
	subNav.navArray = navArray;
	trace(i);
	trace("ID "+subNav.id);
	
}

```

Any suggestions???
