Re: [flexcoders] getting the total of values of an array collection that is updated manually

2011-12-03 Thread Jeff Gomes
One handy way to iterate the contents of an ArrayCollection to make a temporary vector from the source array of the collection, and use the vector.forEach method. At 07:43 12/2/2011, ZIONIST wrote: Hi Guys, i would like to get the total price calculated as an array collection for a list is

Re: [flexcoders] getting the total of values of an array collection that is updated manually

2011-12-03 Thread Scott Fanetti
The way I would do this is to add a change event listener to the array collection - and in the listener I would iterate through the collection to sum the values. I would also create a value object to hold your data in a type safe fashion. You could then use data binding to get UI updates in

[flexcoders] getting the total of values of an array collection that is updated manually

2011-12-02 Thread ZIONIST
Hi Guys, i would like to get the total price calculated as an array collection for a list is populated plus i would like to update the total when the quantity changes too. Here is the code i have so far, could someone please help me correct it. Main App ?xml version=1.0 encoding=utf-8?