An ICollectionView is used for
representing a collection of data and is passed to the various List-based
controls. A change to the collection (like removing an item) is automatically
noticed by a control which makes it easy for the developer. A Model is just a
nice way of describing an anonymous object structure. It feels like XML
somewhat so it’s nice for quickly putting together a data model. If you
expect the data to change a fair amount and it needs to show up in a DataGrid
or List, use the ICollectionView (in this case ArrayCollection) directly. If
you just want to write out a data structure use the Model. In Flex 2 I think we’ll encourage
using strongly typed classes more and more and also encourage using
<mx:XML> instead of Models since e4x will be supported. But it will be
interesting to see where people want to use what… HTH, Matt From: can anyone explain how they
are different and when it's appropriate to YAHOO! GROUPS LINKS
|