# Cumulative add calls from an array of Point instances

**URL:** <https://forum.kirupa.com/t/cumulative-add-calls-from-an-array-of-point-instances/282983>\
**Category:** Uncategorized\
**Created:** [March 1, 2009, 12:03am UTC](https://forum.kirupa.com/t/cumulative-add-calls-from-an-array-of-point-instances/282983 "2009-03-01T00:03:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JTF2](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@JTF2](https://forum.kirupa.com/u/JTF2)\
**Post date:** [March 1, 2009, 12:03am UTC](https://forum.kirupa.com/t/cumulative-add-calls-from-an-array-of-point-instances/282983/1 "2009-03-01T00:03:27Z")

</div>

Hi I have a source array with simple Point instances in them (just an object with x and y properties). I want to have a resulting array with the cumulative result of calling Point.add() to each of the instances. (e.g. the resulting point object is a result of adding the current point to the total of the points before it in the source array.) is this possible to dynamically do this? I keep crashing Flash with what I’m doing! I know it has something to do with recursion but dont know where to start.
