Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread neilwebb
Fantasic. Thanks. On 12 Aug 2008, at 19:20, "Troy Gilbert" <[EMAIL PROTECTED]> wrote: Check out BulkLoader: http://code.google.com/p/bulk-loader/ It's designed for doing exactly this, as well as handling a lot of other common cases (like loading SWF, images, etc. and automatically returning t

Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread Johannes Nel
nice On Tue, Aug 12, 2008 at 8:20 PM, Troy Gilbert <[EMAIL PROTECTED]>wrote: > Check out BulkLoader: http://code.google.com/p/bulk-loader/ > > It's designed for doing exactly this, as well as handling a lot of > other common cases (like loading SWF, images, etc. and automatically > returning th

Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread Troy Gilbert
Check out BulkLoader: http://code.google.com/p/bulk-loader/ It's designed for doing exactly this, as well as handling a lot of other common cases (like loading SWF, images, etc. and automatically returning the DisplayObject, etc.). It includes accumulated progress information, etc. Pretty complete

Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread nwebb
Thanks all. I normally use Cairngorm but it's overkill for an application of this size. I will check out the UniversalMind extension though - sounds good. @Josh - looks cool. Not looking for a sequential loader, but still ... :) @Johannes - yes, an improvement, thanks Thanks for all the feedb

Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread Sefi Ninio
I agree, Cairngorm is perfect for this, especially when using the UniversalMind Cairngorm extension. UM lets you define an array of remote calls (event-command pairs) which can be sequence or parallel execution, and once all the remote calls are finished, you get a notification. Sounds like exactly

Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread DannyT
Very neat, but does this have a variant whereby these calls can be made at the same time? Looks like this (as the name suggests) daisy chains the calls firing one after the other rather than calling them all and monitoring all of the results and notifying when all are successfully called. Like the

Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread Simon Bailey
Nice touch Josh, like it, props! On 12 Aug 2008, at 13:07, Josh McDonald wrote: This is pretty ordinary, and I plan on re-vamping it, but we're planning on open sourcing most of this stuff soon, so you might as well have a look and you can use it as a base for something better: http://www.g

Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread Josh McDonald
This is pretty ordinary, and I plan on re-vamping it, but we're planning on open sourcing most of this stuff soon, so you might as well have a look and you can use it as a base for something better: http://www.gfunk007.com/flex/ChainLoader.as Usage example: new ChainLoader(Application

Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread Johannes Nel
i normally use a hash to manage this kind of thing. when the responder returns you set the key in the dictionary object's to true, false or error object, and you loop through all the keys and make your decision from there. On Tue, Aug 12, 2008 at 1:46 PM, Simon Bailey <[EMAIL PROTECTED]>wrote: >

Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread jitendra jain
PM Subject: [flexcoders] Design Patters For Loading Data? Hi, hoping for some help on this... Problem: I am making multiple asynchronous calls to the server and I want to ensure I have the data back from all the calls before calling method x. I don't want to daisy-chain the calls (i.e.havi

Re: [flexcoders] Design Patters For Loading Data?

2008-08-12 Thread Simon Bailey
How about defining and array with all the method names and every time a method is returned it removes its method name from the array. The method to remove each item from the array would check the array length each times its called and when the array.length == 0 then call your method x? C

[flexcoders] Design Patters For Loading Data?

2008-08-12 Thread nwebb
Hi, hoping for some help on this... * Problem*: I am making multiple asynchronous calls to the server and I want to ensure I have the data back from *all* the calls before calling method x. I don't want to daisy-chain the calls (i.e.having to wait until service#1 reurns data before calling service#