--- In [email protected], Alex Harui <aha...@...> wrote: > > By âload module 2â did you actually load a second module or is it a > second instance of an already loaded module and thus the WebService instance > is the same. Hopefully it is the latter as I wouldnât have an explanation > for the former. > > For the latter, I believe (and I am not the expert on web-services) that > every send() method returns an AsyncToken and you can save that away and > decide whether to respond to the result event based on the AsyncToken > referenced in the result event.
Alex; You are correct, but possibly a better way to approach this is to attach a responder to that token that contains the fault/result handlers local to the specific module that called the service, rather than adding an event listener directly that will respond to events on all calls and then deciding later whether or not to act. This example http://flexdiary.blogspot.com/2009/01/lazy-loading-tree-example-file-posted.html doesn't use Modules, but it does show how to use a responder to "route" the result of a call back to the specific instance of a class that made the call. HTH; Amy

