# New Arrays from Array Value (Newbie Question!)

**URL:** <https://forum.kirupa.com/t/new-arrays-from-array-value-newbie-question/316571>\
**Category:** flash\
**Created:** [November 26, 2010, 8:49am UTC](https://forum.kirupa.com/t/new-arrays-from-array-value-newbie-question/316571 "2010-11-26T08:49:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![XiaoHei](https://avatars.discourse-cdn.com/v4/letter/x/5f8ce5/32.png) [@XiaoHei](https://forum.kirupa.com/u/XiaoHei)\
**Post date:** [November 26, 2010, 8:49am UTC](https://forum.kirupa.com/t/new-arrays-from-array-value-newbie-question/316571/1 "2010-11-26T08:49:51Z")

</div>

I have a array of categories, for e.g.

var categoryArray = new Array(‘value1’, ‘value2’, ‘value3’);

I would like to loop and create new arrays from each of the values in the categoryArray

I tried…  
for(var i=0;i\<=categoryArray.length-1;i++){  
this[categoryArray\*] = new Array();  
}

value1[0] = “dsfsdf”;

trace(value1[0]);

It doesn’t seem to work. I am quite new to AS3, so please bear with me.

p.s. I’ve tried google, without much help

Thanks!
