# Help with Arrays!

**URL:** <https://forum.kirupa.com/t/help-with-arrays/157825>\
**Category:** flash\
**Created:** [August 4, 2005, 3:03pm UTC](https://forum.kirupa.com/t/help-with-arrays/157825 "2005-08-04T15:03:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VersusMG](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@VersusMG](https://forum.kirupa.com/u/VersusMG)\
**Post date:** [August 4, 2005, 3:03pm UTC](https://forum.kirupa.com/t/help-with-arrays/157825/1 "2005-08-04T15:03:24Z")

</div>

Okay this is what I am after. I have created a movie clip that has a dynamic text box in it with the instance name of ‘news\_txt’ I have set the Movie Clip linkage identifer to ‘newsItem’. What I am looking for is to have this movie clip be replicated depending on how many news items are in my xml doc.

```auto

function loadXML(success) {
	if (success) {
		xmlNode = this.firstChild.childNodes;
		header = [];
		desc = [];
		total = xmlNode.childNodes.length;
		for (i=0; i<total; i++) {
			date* = xmlNode.childNodes*.childNodes[0].attributes.date;
			desc* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
		}
	}
}
var news_xml = new XML();
news_xml.ignoreWhite = true;
news_xml.onLoad = loadXML;
news_xml.load("news.xml");

```

That is my AS but i have no idea how to work with Arrays! any help would rock!
