Adding the value of array elements together?

ok, i’ve been completely stuck on this for the past two hours. i just need someone to help point me in the right direction as far as what method to use here.

i have a clip on the stage that is 650px wide. i am placing dynamicaly sized clips on top of that clip. when they are created, their names are placed into an array. I am trying to take the items out of the array, find their widths, and then figure out if the width will be greater than 650 if the next clip is placed down. i’m stuck on the loop.

(“track1Clips” is the array i have the clips in) here’s what i have
for (i=0; i<_root.track1Clips.length; i++) {
clipName = _root.track1Clips*;
clipName._width = clipWidth;
}

i want to add all the values of clipWidth together inside the loop to get the width of all the clips together, and then substract that value from 650 to get how big the last clip needs to be. I’m lost as to how to do this. can someone please give me a nudge. any help would be so greatly appreciated.

it’s so add to look up help on this cause all i can find is how to add an element to an array, not add the values of the array together