RE: [flexcoders] How to get a item in Arraycollection?

2008-06-08 Thread Rick Winscot
a item in Arraycollection? It works with "trace(acTest.getItemAt(0).first);" Thanks Mark - Original Message From: Richard Rodseth <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Saturday, June 7, 2008 6:04:01 PM Subject: Re: [flexcoders] How to get a item in

Re: [flexcoders] How to get a item in Arraycollection?

2008-06-07 Thread Mark Shen
It works with "trace(acTest.getItemAt(0).first);" Thanks Mark - Original Message From: Richard Rodseth <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Saturday, June 7, 2008 6:04:01 PM Subject: Re: [flexcoders] How to get a item in Arraycollectio

Re: [flexcoders] How to get a item in Arraycollection?

2008-06-07 Thread Richard Rodseth
You can use acTest.getItemAt(0) acTest.source[0] also compiles. If you are using Flexbuilder, Cntl-Space (or PC equivalent) gives you "content assist", so just type it after the period and see what you get. On Sat, Jun 7, 2008 at 5:57 PM, markflex2007 <[EMAIL PROTECTED]> wrote: > Hi, > > I have

[flexcoders] How to get a item in Arraycollection?

2008-06-07 Thread markflex2007
Hi, I have a demo here: acTest = new ArrayCollection([{first: 'Matt', last: 'Matthews'},{first: 'Jame', last: 'Wang'},{first: 'Rey', last: 'Chang'}]); trace(acTest.length.toString()); trace(acTest.list.source[0].first); I want to use 'acTest.list.source[0].first' to