[flexcoders] Re: adding the user input to an arraycollection

2008-10-17 Thread valdhor
This is how I would do it (Others may do it differently)... Assuming the text fields have id's of bookType and sales: private function addToArray():void { var newBook:Object = new Object(); newBook.bookType = bookType.text; newBook.sales= bookType.sales; bookSales.addItem(newB

[flexcoders] Re: adding the user input to an arraycollection

2008-10-16 Thread Claudiu Ursica
Add them as Object, the idea is to update the bookSales if I'm reading this right? so when you pass the to the function you do it as pair values {bookType: "Fiction", Sales: 143}. HTH, Cheers, Claudiu --- In flexcoders@yahoogroups.com, sainath evuri <[EMAIL PROTECTED]> wrote: > > i would like to