What are you using for your AMF implementation? WebOrb by any chance?
--- In [email protected], "Croz" <[EMAIL PROTECTED]> wrote:
>
> I have a function that performs a series of server-side operations.
> Each call takes a half a second or so and I'd like to update the UI
via
> a progress bar.
>
> The problem I'm running into is that all my remote methods are
returning
> at the same time so I have a progress bar that goes from empty to
full
> all at once rather than nice and gradual.
>
> From watching the server side logs and the client trace statements
I can
> see that the server side requests are returning once every half-
second
> or so but I see no trace statements from my "handleVoidAction"
method
> until the very end when I see all of them at once. This happens
whether
> the number of requests is 5 or 500.
>
> Here is the method I'm calling:
>
> public function makeGroupsNotEligible(groups:Array):void
> {
> resetProgressBar(groups.length, "Making groups not
> eligible...");
>
> for each(var g:Group in groups)
> {
> var token:AsyncToken =
> remoteObject.makeGroupNotEligible(g.enterpriseId, g.groupId,
> g.userLimit);
> token.addResponder(new AsyncResponder
(handleVoidAction,
> faultHandler, token));
>
> }
> }
>
> My question is how do I make the AsyncResponder respond after each
> response rather than all at once in the very end?
>
> Thanks!
>