|
As well as the ArrayCollection can be much
easier to put things into than an Array. On an Array you have to use the basic
Array methods such as push and pop, where as the ArrayCollection will allow you
to add and remove items with methods such as addItem and removeItem. So trying
to stay with Jesse’s analogy ;) instead of having to kick the the drawer
to get it open (and hearing it scream), you have some nice handles to grab on
to. From:
[email protected] [mailto:[EMAIL PROTECTED] On Behalf Of 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 know when the
array is updated in order to redraw themselves, like the DataGrid,
List, etc. An Array is like a drawer in the real world. You can
put something in it, but it doesn't talk to you. ----- Original Message ----- From: Bill
Brown Sent: Tuesday, July 25,
2006 5:59 PM Subject: [flexcoders] What
is the difference between an Array and an ArrayCollection? This is a pretty newbie programming question, but coming from an
AS1/AS2 background I'm not familiar with the difference between an Array and an
ArrayCollection. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS
|
- RE: [flexcoders] What is the difference between an Array ... Dustin Mercer
- Re: [flexcoders] What is the difference between an A... JesterXL
- Re: [flexcoders] What is the difference between an A... Pan Troglodytes
- RE: [flexcoders] What is the difference between an A... Tobias Patton
- Re: [flexcoders] What is the difference between ... Bill Brown
- Re: [flexcoders] What is the difference between ... John C. Bland II
- RE: [flexcoders] What is the difference between an A... Dustin Mercer

