Follow Flex After Dark on Twitter

Flex Collection Events (mx.events.CollectionEvent)

When a Collection's contents change it will dispatch an event. The event will contain a kind property that specifies how the collection changed.

Collection Event kinds are encapsulated in the mx.events.CollectionEventKind class.

There are several kinds of collection events:

  • add - an item was added
  • move - an item in the collection has moved to another position
  • refresh - the collection has applied a new sort or filter
  • remove - an item was removed
  • replace - an item in the collection was replaced with another
  • reset - the collection has changed drastically
  • update - one or more items in the collection have been updated

Determining Changed Items

TODO...

Related Links:

Related Docs
  • ActionScript ArrayCollection The ArrayCollection class is a robust collection class that can be more useful than a standard array.
  • Flex Events Events drive Flex applications. See how to register listeners and dispatch events.
  • Flex Collections Collections are objects that provide a uniform way to access and represent item lists.
Recent Docs
Random Docs
  • Flex StyleSheets StyleSheets define styles for Flex components and can be defined inline or loaded at run-time.
  • Flex Fonts Working with Fonts in Flex, including embedding and runtime loading.
  • ActionScript Language Introduction to the ActionScript 3.0 programming language.
  • Flex Builder Subversion Using Subversion source-control with Flex Builder.
  • Flex Item Renderers A Flex Item Renderer is a component used by data-driven controls, including lists, for displaying each item of a data provider.