Use two collections.  Every three seconds, copy the entire contents of the 
first into the second.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of Rohit Sharma
Sent: Monday, March 23, 2009 12:03 AM
To: [email protected]
Subject: [flexcoders] Sorting a list at specified intervals


Hello All,

         I have a requirement in my project where I want the list to be sorted 
every three seconds. The flow goes as follows :-

 1.  As soon as a new room gets added or deleted or the user count changes, it 
gets reflected in the room list which is a list component.
 2.  But the room list should be sorted only on 3 seconds duration.
         What is happening is that as soon as I apply the sort and refresh it, 
it starts working. And the sorting happens as soon as some change
       happens to the list dataprovider. Am not able to restrict the sort at 
three seconds interval. I have also tried using disableautoupdate with
       the data provider but that stops the addition of the new rooms also.  I 
also tried setting sort to null after applying first sort but as soon as
       I refresh the null sort, original sort goes off.

       Please help, I am stuck with this thing.

 Regards,
 Rohit Sharma
 Lead Developer, Mactabilis Arts.
 www.mactabilisarts.com<http://www.mactabilisarts.com>

Reply via email to