# Please help. Array - Looping problem

**URL:** <https://forum.kirupa.com/t/please-help-array-looping-problem/55348>\
**Category:** Uncategorized\
**Created:** [June 23, 2004, 4:53am UTC](https://forum.kirupa.com/t/please-help-array-looping-problem/55348 "2004-06-23T04:53:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BVision](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@BVision](https://forum.kirupa.com/u/BVision)\
**Post date:** [June 23, 2004, 4:53am UTC](https://forum.kirupa.com/t/please-help-array-looping-problem/55348/1 "2004-06-23T04:53:47Z")

</div>

Origional[AS]   
allLinks.push(new Link(s1[0], s1[1], s1[2], s1[3]));  
allLinks.push(new Link(s2[0], s2[1], s2[2], s2[3]));  
// seems to be a pattern here ??, would be nice to loop this…  
[/AS]etc…  
My attempt to try to simplify this problem[AS] for(i=0;i\<5;i++){  
addNew = (new Link(s+i[0], s+i[1], s+i[2], s+i[3]));  
allLinks\*= addNew;}  
[/AS]

I would like to populate ‘allLinks’ with objects ‘s’. However I have been unsuccessfull in my attempts. I need this loop to work for a a large number of items so I dont really want to have to add each individual item.

I have no more ideas, i’ve tried just about everything I know. Even checked out these forums for this type of problem, with no luck.

I would like to make it as simple as possible.

Thanks in Advance.  
Anthony - BVision.
