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
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
2 matches
Mail list logo