Filed Under (AIR, Drunk On Software, Flex) by jonr on November-20-2008

James and I have posted our latest video, Performance Pitfalls of Flex’s ArrayCollection.  It is a follow-up to my recent post on the problems we encourtered with ArrayCollection.

Enjoy!

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • DZone
  • Digg
  • del.icio.us
  • Reddit
  • Facebook
  • LinkedIn

Comments:
codecraig on November 23rd, 2008 at 8:53 pm #

Ever try this?

var data:Array = getDataFromSomewher();

// dgAC – ArrayCollection bound to a DataGrid

for each ( var tmp:MyDomainObject in data ) {
dgAC.source.push( tmp );
}
dgAC.refresh();

This will add the stuff from ‘data’ into the Array that the ‘dgAC’ ArrayCollection wraps without firing events. Then the call to ‘refresh’ fires off an event telling whoever is listening that the contents changed!

Ever try that??

Post a comment
Name: 
Email: 
URL: 
Comments: