Array reconstruct

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


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.