--- In [email protected], "javaguy44" <javagu...@...> wrote:
>
> Hi,
> 
> Quick "best design / practice" question for all you experts out there.
> 
> When I login to the channelSet, I want to pass a generic, resultHandler(and 
> fault) function such as LoginSucessFunction that I can pass to the 
> AsyncResponder, as opposed to writing this function many times in various 
> places
> 
> As far as I can see there are two ways to go about doing this:
> 1.  I can try to extend Function.  But after some google searches, I haven't 
> seen anyone do this.
> 2.  Workaround - create a class like LoginSuccessFunctionWrapper which is 
> just a class wrapper around my function
> 
> Anyone have any input on the best way to go about this?  Anyone have a better 
> way to handle their login success and faults, writing the function just once?

Use AsyncToken 
http://flexdiary.blogspot.com/2008/11/more-thoughts-on-remoting.html

For an example, see 
http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-posted.html

Reply via email to