# Array reconstruct

**URL:** <https://forum.kirupa.com/t/array-reconstruct/283370>\
**Category:** flash\
**Created:** [March 5, 2009, 12:06pm UTC](https://forum.kirupa.com/t/array-reconstruct/283370 "2009-03-05T12:06:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michdd](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@michdd](https://forum.kirupa.com/u/michdd)\
**Post date:** [March 5, 2009, 12:06pm UTC](https://forum.kirupa.com/t/array-reconstruct/283370/1 "2009-03-05T12:06:06Z")

</div>

I currently use some code to break down a multidimensional array into a simple string like this:

```auto

var mapStr:String;
for ( var i:int=0; i < outArr.length; i++ ) {
	for ( var j:int=0; j < outArr*.length; j++ ) {
		mapStr = mapStr + outArr*[j] + "-";
	}
	mapStr = mapStr + "_";  
}
mapOut.text = mapStr;

```

I want to be able to reconstruct the array from the string output from that.
