Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread JesterXL
A drawer from Disney's "Beauty and the Beast" that goes, "Dude, you just put something in me!". It does this by emitting an event, collectionChanged, when this happens. Controls can listen for this event and knowwhen the array is updatedin order to redraw themselves, like theDataGrid,

Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread JesterXL
It also has some nice methods to help you put things in certain spots. You can add things via addItem just like Array.push, but it has cool methods like replaceItemAt, contains, and removeAll among others. All trigger this "collectionChanged" event. Finally, it implements some commonly

Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread Pan Troglodytes
To add to Jester's imaginative response, ArrayCollection actually wraps an Array. So inside, there is an Array, which can be accessed through the source property. But if you directly access the array, you don't get the cool events the make data binding work. On 7/25/06, JesterXL [EMAIL

RE: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread Tobias Patton
You can also supply sorting and filtering criteria to an array collection. This would be like a chest of drawers that folds your socks and tosses the ones that have holes in them. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Pan

Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread Bill Brown
You guys are great! I don't think I've ever lauged so hard learning a programming concept.Thank-you very much!Perhaps there should be a section in the livedocs dedicated to magical furniture analogies... __._,_.___ -- Flexcoders Mailing List FAQ:

Re: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread John C. Bland II
You mean I'm supposed to throw those (socks with wholes) away?On 7/25/06, Tobias Patton [EMAIL PROTECTED] wrote: You can also supply sorting and filtering criteria to an array collection. This would be like a chest of drawers that folds your socks

RE: [flexcoders] What is the difference between an Array and an ArrayCollection?

2006-07-25 Thread Dustin Mercer
No way man! Better ventilation if you ask me :P From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John C. Bland II Sent: Tuesday, July 25, 2006 5:14 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] What is the difference between an Array and